{{ $authorName := .Site.Params.author }} {{ $authorEmail := .Site.Params.authorEmail }} {{ .Site.Title }} – {{ .Title }} {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{ . }}{{ end }}{{ with $authorEmail }} {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} {{ . }}{{ with $authorName }} ({{ . }}){{ 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 }} {{ if not $.Section }} {{ $sections := .Site.Params.rss.sections | default (slice "blog") }} {{ .Scratch.Set "rssPages" (first 50 (where $.Site.RegularPages "Type" "in" $sections)) }} {{ else }} {{ if $.Parent.IsHome }} {{ .Scratch.Set "rssPages" (first 50 (where $.Site.RegularPages "Type" $.Section)) }} {{ else }} {{ .Scratch.Set "rssPages" (first 50 $.Pages) }} {{ end }} {{ end }} {{ range (.Scratch.Get "rssPages") }} {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }} {{ with $img }} {{ $img := .Resize "640x" }} {{ printf "]]>" $img.Permalink $img.Width $img.Height | safeHTML }} {{ end }} {{ .Content | html }} {{ end }}