{{- $authorEmail := .Site.Params.email }} {{- $authorName := .Site.Params.name }} {{- $pctx := . }} {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} {{- $pages := slice }} {{- $pages = $pctx.RegularPages }} {{- $pages = where $pages "Section" "blog" }} {{- $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 }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} {{ .Site.Title }} {{ $authorEmail }} ({{ $authorName }}) Hugo {{ site.Language.LanguageCode }}{{ with $authorEmail }} {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{- with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end }} {{- range $pages }} {{ .Title }}{{ $title := .Title }} {{ .Permalink }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} {{- $emailprompt := "" }} {{- with .Site.Params.links.email }}{{ $emailprompt = printf "← Reply-To" . $title }}{{ end }} {{ ((printf "%s%s" .Content $emailprompt) | transform.XMLEscape) | safeHTML }} {{- end }}