{{- printf `` | safeHTML }} {{- $pages := .Site.RegularPages -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} {{ .Site.Title }} {{ .Site.Params.siteDescription }} {{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Permalink }} {{ with .OutputFormats.Get "SectionsAtom" -}} {{ printf `` .MediaType .Permalink | safeHTML }} {{ end -}} {{ with .Site.Author.name -}} {{ . }} {{ print `/` | absLangURL }} {{ with $.Site.Author.email }} {{ . }} {{ end -}} {{- end }} Hugo {{- range (where $pages "Section" "in" .Site.Params.mainSections) }} {{ if not .Params.noclick }} {{ $page := . }} {{ .Title }} {{ .Permalink }} {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{- $summary := .Description | default ($page.Scratch.Get "summary") -}} {{ printf `` $summary | safeHTML }} {{ if $.Site.Params.includeContent }} {{ printf `` .Content | safeHTML }} {{ end }} {{ if eq $.Site.Params.categoryBy "sections" }} {{ $.Scratch.Delete "sectionDir" }} {{ $sections := split (strings.TrimSuffix "/" .File.Dir) "/" }} {{ range $sections }} {{ $section := . }} {{ $.Scratch.Add "sectionDir" (printf `/%s` .) }} {{ with $.Site.GetPage ($.Scratch.Get "sectionDir") }} {{ if (eq .Kind "section") }} {{ end }} {{ end }} {{ end }} {{ end }} {{ with $.Site.Taxonomies }} {{ range $taxonomy, $terms := . }} {{ with $page.Param $taxonomy }} {{ range $index, $term := . }} {{ $url := urls.Parse ($term | urlize) }} {{ $path := $url.Path }} {{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $path) }} {{ end }} {{ end }} {{ end }} {{ end }} {{ end }} {{ end }} {{ end }}