18 lines
464 B
XML
18 lines
464 B
XML
{{- $pageContext := . -}}
|
|
{{- if .IsHome -}}
|
|
{{ $pageContext = .Site }}
|
|
{{- end -}}
|
|
|
|
{{- $pages := slice -}}
|
|
{{- if or $.IsHome $.IsSection -}}
|
|
{{- $pages = $pageContext.RegularPages -}}
|
|
{{- else -}}
|
|
{{- $pages = $pageContext.Pages -}}
|
|
{{- end -}}
|
|
|
|
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
|
{{- if ge $limit 1 -}}
|
|
{{- $pages = $pages | first $limit -}}
|
|
{{- end -}}
|
|
|
|
{{ partial "feeds/rss/base.xml" (dict "context" . "pages" $pages "Site" .Site) }}
|