{{- $pctx := . }} {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} {{- $pages := slice }} {{- if or $.IsHome $.IsSection }} {{- $pages = $pctx.RegularPages }} {{- else }} {{- $pages = $pctx.Pages }} {{- end }} {{- $limit := .Site.Config.Services.RSS.Limit }} {{- if ge $limit 1 }} {{- $pages = $pages | first $limit }} {{- end }} {{- printf "" | safeHTML }} {{ if eq .Title site.Title }}{{ site.Title }}{{ else }}{{ with .Title }}{{ . }} {{ i18n "string_on" }} {{ end }}{{ site.Title }}{{ end }} {{ .Permalink }} {{ i18n "string_recent_content" }} {{ if ne .Title site.Title }}{{ with .Title }}{{ i18n "string_in" }} {{ . }} {{ end }}{{ end }}{{ i18n "string_on" }} {{ site.Title }} Hugo {{- with site.Language.Locale }} {{ . }} {{- end }} {{- with site.Params.author.email }} {{ . }}{{ with site.Params.author.name }} ({{ . }}){{ end }} {{- end }} {{- with site.Params.author.email }} {{ . }}{{ with site.Params.author.name }} ({{ . }}){{ end }} {{- end }} {{- with site.Copyright }} {{ . }} {{- end }} {{- 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 }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with site.Params.author.email }} {{ . }}{{ with site.Params.author.name }} ({{ . }}){{ end }} {{- end }} {{ .Permalink }} {{ .Content | transform.XMLEscape | safeHTML }} {{- end }}