{{ $item := . }} {{ if .IsHome }} {{ $item = .Site }} {{ end }} {{ $pages := slice }} {{ if or $.IsHome $.IsSection }} {{ $pages = $item.RegularPages }} {{ else }} {{ $pages = $item.Pages }} {{ end }} {{ $limit := .Site.Config.Services.RSS.Limit }} {{ if ge $limit 1 }} {{ $pages = $pages | first $limit }} {{ end }} {{ $pages = where $pages "Params.paige.hide_rss" "ne" true }} {{ $title := partial "paige-titles.html" . }} {{ printf "" | safeHTML }} {{ with .OutputFormats.Get "RSS" }} {{ printf `` .Permalink .MediaType | safeHTML }} {{ end }} {{ with .Site.Copyright }} {{ . }} {{ end }} Recent content{{ with $title }} in {{ . }}{{ end }} {{ with .Site.LanguageCode }} {{ . }} {{ end }} {{ if and .Date (not .Date.IsZero) }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ end }} {{ .Permalink }} {{ with .Site.Author.email }} {{ . }} {{ end }} {{ with $title }} {{ . }} {{ end }} {{ with .Site.Author.email }} {{ . }} {{ end }} {{ range $pages }} {{ with .Site.Author.email }} {{ . }} {{ end }} {{ if .Content }} {{ printf "" .Content | safeHTML }} {{ else if .Description }} {{ .Description | markdownify | html }} {{ end }} {{ with .Permalink }} {{ . }} {{ . }} {{ end }} {{ with .Date }} {{ .Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ end }} {{ with .Title }} {{ . }} {{ end }} {{ end }}