diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/index.xml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/layouts/index.xml b/layouts/index.xml index 3af797c..6ec821f 100644 --- a/layouts/index.xml +++ b/layouts/index.xml @@ -1,20 +1,16 @@ {{- $authorEmail := .Site.Params.email }} - {{- $authorName := .Site.Params.name }} - {{- $pctx := . }} {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} {{- $pages := slice }} -{{- if or $.IsHome $.IsSection }} {{- $pages = $pctx.RegularPages }} -{{- else }} -{{- $pages = $pctx.Pages }} -{{- end }} +{{- $pages = where $pages "Section" "blog" }} {{- $limit := .Site.Config.Services.RSS.Limit }} {{- if ge $limit 1 }} {{- $pages = $pages | first $limit }} {{- end }} {{- 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> |
