diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/index.xml | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/layouts/index.xml b/layouts/index.xml index 6ec821f..db5dd5c 100644 --- a/layouts/index.xml +++ b/layouts/index.xml @@ -2,15 +2,8 @@ {{- $authorName := .Site.Params.name }} {{- $pctx := . }} {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} -{{- $pages := slice }} -{{- $pages = $pctx.RegularPages }} -{{- $pages = where $pages "Section" "blog" }} -{{- $limit := .Site.Config.Services.RSS.Limit }} -{{- if ge $limit 1 }} -{{- $pages = $pages | first $limit }} -{{- end }} +{{- $pages := where .Site.RegularPages "Params.index" true }} {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} - <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title> |
