{{- $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 }} {{ 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 -- gohugo.io {{ with site.LanguageCode -}} {{ . }} {{ 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 }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with site.Params.author.email -}} {{ . }}{{ with site.Params.author.name }} ({{ . }}){{ end }} {{ end -}} {{ .Permalink }} {{ .Content | html }} {{ end -}}