{{ `` | 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 }} {{ .Permalink }} {{ .Site.Params.siteDescription }} Hugo {{ hugo.Version }} https://gohugo.io/ {{ with .Site.LanguageCode }} {{ . }} {{ end }} {{ with .Site.Author.email }} {{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }} {{ end }} {{ with .Site.Author.email }} {{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }} {{ end }} {{ with .Site.Copyright }} {{ . | plainify | htmlUnescape }} {{ end }} {{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} {{ with .OutputFormats.Get "SectionsRSS" }} {{ end }} {{ range $pages }} {{ $page := . }} {{- $author := partial "utils/author.html" $page -}} {{ (partial "utils/title.html" (dict "$" . "title" .Title)).rawTitle }} {{ .Permalink }} {{ .Permalink }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} {{ with $author.email }} {{ . }}{{ with $author.name }} ({{ . }}){{ end }} {{ end }} {{ with $author.copyright -}} {{ . | plainify | htmlUnescape }} {{- end }} {{ if $.Site.Params.includeContent }} {{ partial "utils/make-links-absolute.html" (dict "$" . "content" .Content) | html }} {{ else }} {{- $summary := .Description | default (partial "utils/summary.html" $page) -}} {{ partial "utils/make-links-absolute.html" (dict "$" . "content" $summary) | 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") }} {{ $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) }} {{ .Title | default $term }} {{ end }} {{ end }} {{ end }} {{ end }} {{ end }} {{ end }}