{{ $page := . }} {{ $limit := site.Config.Services.RSS.Limit }} {{ $pages := (cond $page.IsHome site $page).RegularPages }} {{ $title := partial "paige/title.html" $page }} {{ if ge $limit 0 }} {{ $pages = $pages | first $limit }} {{ end }} {{ $pages = where $pages "Params.paige.feed.hide_page" "ne" true }} {{ printf "" | safeHTML }} {{ with $page.OutputFormats.Get "RSS" }} {{ printf `` .Permalink .MediaType | safeHTML }} {{ end }} {{ with site.Copyright }} {{ . }} {{ end }} {{ with $title -}} {{- . -}} {{- else -}} Recent content {{- end }} {{ with 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" }} {{ end }} {{ $page.Permalink }} {{ with $page.Param "paige.feed.rss.managing_editor" }} {{ . }} {{ end }} {{ with $title }} {{ . }} {{ end }} {{ with $page.Param "paige.feed.rss.web_master" }} {{ . }} {{ end }} {{ range $pages }} {{ with partial "paige/authors.html" . }} {{ $authors := slice }} {{ range . }} {{ $authors = $authors | append .name }} {{ end }} {{ delimit $authors ", " }} {{ end }} {{ if .Content }} {{ printf "" .Content | safeHTML }} {{ else if .Description }} {{ printf "" (.Description | markdownify) | safeHTML }} {{ end }} {{ with .Permalink }} {{ . }} {{ . }} {{ end }} {{ with .PublishDate }} {{ .Format "Mon, 02 Jan 2006 15:04:05 -0700" }} {{ end }} {{ with .Title }} {{ . | markdownify | plainify | htmlUnescape | safeHTML }} {{ end }} {{ end }}