{{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} {{ printf "" | safeHTML }} Hugo {{ .Site.Title }} {{- with .Site.Params.brand.tagline }} {{ . }} {{- end }} {{ "/" | absLangURL }} {{ .Site.Params.author }} {{ "/" | absLangURL }} Hugo gohugo.io {{- with .Site.Copyright }} {{ . }} {{- end }} {{- with .Site.Params.brand.icon }} {{ . | absURL }} {{- end }} {{- with .Site.Params.brand.logo }} {{ . | absURL }} {{- end }} {{ dateFormat "2006-01-02T15:04:05Z" now.UTC | safeHTML }} {{- with .OutputFormats.Get "ATOM" }} {{ printf `` .MediaType.Type .Permalink $.Site.LanguageCode | safeHTML }} {{- end }} {{- range .AlternativeOutputFormats }} {{ printf `` .MediaType.Type .Permalink $.Site.LanguageCode | safeHTML }} {{- end }} {{- range $pages }} {{ .Title }} {{- $author := index .Site.Data.authors (.Params.author | default "default") }} {{ $author.name }} {{ $author.uri }} {{ .Permalink }} {{- if .IsTranslated -}} {{ range .Translations }} {{- end -}} {{ end }} {{ dateFormat "2006-01-02T15:04:05Z" .Lastmod.UTC | safeHTML }} {{ dateFormat "2006-01-02T15:04:05Z" .Date.UTC | safeHTML }} {{ trim .Content "\n" }} {{- end }}