{{ `` | safeHTML }} {{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.mainSections -}} {{- $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" }} {{ .Permalink }} {{ with .OutputFormats.Get "SectionsAtom" -}} {{ end -}} {{ with .Site.Author.name -}} {{ . }} {{ print `/` | absLangURL }} {{ with $.Site.Author.email }} {{ . }} {{ end -}} {{- end }} {{ with .Site.Copyright -}} {{ . | plainify | htmlUnescape }} {{- end }} Hugo {{- range $pages }} {{ $page := . }} {{- $author := partial "utils/author.html" $page -}} {{ (partial "utils/title.html" (dict "$" . "title" .Title)).rawTitle }} {{ .Permalink }} {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }} {{ .PublishDate.Format "2006-01-02T15:04:05-07:00" }} {{ with $author -}} {{ with .name -}} {{ . }} {{ end -}} {{ with .website -}} {{ . }} {{ end -}} {{ with .email -}} {{ . }} {{ end -}} {{- end }} {{ with $author.copyright -}} {{ . | plainify | htmlUnescape }} {{- end }} {{- $summary := .Description | default (partial "utils/summary.html" $page) -}} {{ partial "utils/make-links-absolute.html" (dict "$" . "content" $summary) | html }} {{ if $.Site.Params.includeContent }} {{ partial "utils/make-links-absolute.html" (dict "$" . "content" .Content) | html }} {{ 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 }}