{{- $pctx := . -}} {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} {{- $pages := $pctx.RegularPages -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} {{ partial "site-title" . }} {{ .Permalink }} Recent from {{ partial "site-title" . }} {{ .Site.LanguageCode }} {{- if not .Date.IsZero -}} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{ with .OutputFormats.Get "RSS" }} {{- printf "" .Permalink "application/rss+xml" | safeHTML -}} {{ end }} {{- range $pages -}} {{ if and (ne .Params.hidden true) (not .Params.Unlisted) (not .ExpiryDate) }} {{ .Summary | htmlUnescape }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ .Permalink }} {{ .Content | html }} {{ end }} {{ end }}