{{- $pages := where .Site.RegularPages "Section" "posts" -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} {{- $rssFeedDescription := .Site.Params.rssFeedDescription | default "summary" -}} {{ printf "" | safeHTML }} {{ .Site.Title }} blog {{ .Permalink }} Recent content on {{ .Site.Title }}. Hugo {{ site.Language.LanguageCode }} {{- if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ end -}} {{- with .OutputFormats.Get "RSS" -}} {{ printf "" .Permalink .MediaType | safeHTML }} {{ end -}} {{- range $pages -}} {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ .Permalink }} {{- if eq $rssFeedDescription "summary" -}} {{ .Summary | html }} {{ else if (eq $rssFeedDescription "full") }} {{ .Content | html }} {{ else }} {{ errorf "Error in RSS feed generation %q" .Path }} {{- end -}} {{- end }}