{{ $page := . }} {{ $limit := $page.Site.Config.Services.RSS.Limit }} {{ $pages := "" }} {{ $pagesource := cond $page.IsHome $page.Site $page }} {{ $title := partial "paige/func-title.html" $page }} {{ if or $page.IsHome $page.IsSection }} {{ $pages = $pagesource.RegularPages }} {{ else }} {{ $pages = $pagesource.Pages }} {{ end }} {{ if ge $limit 1 }} {{ $pages = $pages | first $limit }} {{ end }} {{ $pages = where $pages "Params.paige.hide_rss" "ne" true }} {{ printf "" | safeHTML }} {{ with $page.OutputFormats.Get "RSS" }} {{ printf `` .Permalink .MediaType | safeHTML }} {{ end }} {{ with $page.Site.Copyright }} {{ . }} {{ end }} {{ with $title -}} {{- . -}} {{- else -}} Recent content {{- end }} {{ with $page.Site.LanguageCode | default .Site.Language.Lang }} {{ . }} {{ end }} {{ if and $page.PublishDate (not $page.PublishDate.IsZero) }} {{ $page.PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ end }} {{ $page.Permalink }} {{ with $page.Site.Params.paige.rss.managing_editor }} {{ . }} {{ end }} {{ with $title }} {{ . }} {{ end }} {{ with $page.Site.Params.paige.rss.web_master }} {{ . }} {{ end }} {{ range $pages }} {{ with partial "paige/func-authors.html" . }} {{ . }} {{ end }} {{ if .Content }} {{ printf "" .Content | safeHTML }} {{ else if .Description }} {{ .Description | markdownify | html }} {{ end }} {{ with .Permalink }} {{ . }} {{ . }} {{ end }} {{ with .PublishDate }} {{ .Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ end }} {{ with .Title }} {{ . | markdownify | plainify | htmlUnescape }} {{ end }} {{ end }}