{{- $pages := .Pages -}} {{- /* Front matter: password */ -}} {{- $pages = where $pages "Params.password" "eq" nil -}} {{- /* Front matter: hidden_from_feed */ -}} {{- if .Site.Params.hidden_from_feed -}} {{- $pages = where $pages "Params.hidden_from_feed" false -}} {{- else -}} {{- $pages = where $pages "Params.hidden_from_feed" "!=" true -}} {{- end -}} {{- if ge .Config.limit 1 -}} {{- $pages = $pages | first .Config.limit -}} {{- end -}} {{- printf "" | safeHTML }} {{ .Title }} {{ .Permalink }} {{ .Site.Params.description | default .Site.Title }} {{- if and (.Site.Params.feed.follow.feed_id) (.Site.Params.feed.follow.user_id) }} {{ .Site.Params.feed.follow.feed_id }} {{ .Site.Params.feed.follow.user_id }} {{- end }} Hugo {{ hugo.Version }} & FixIt {{ hugo.Store.Get "version" }} {{ .Site.Language.Locale }}{{ 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 }} {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "rss" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end }} {{- range $page := $pages }} {{- $fullText := ((.Params.feed | default dict) | merge $.Config ).full_text }} {{- $author := partial "function/get-author-map.html" .Params.author }} {{- $cover := dict "Page" . "Preview" true "Build" true | partial "function/get-cover.html" -}} {{ .Title }} {{ .Permalink }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with $author.email }}{{ . }}{{ with $author.name }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} {{- with .GetTerms "categories" }} {{- range . }} {{ .LinkTitle }} {{- end }} {{- end }} {{- if $fullText }} {{- dict "Content" .Content "Ruby" (.Param "ruby") "Fraction" (.Param "fraction") "Fontawesome" (.Param "fontawesome") "FeaturedImage" $cover.URL | partial "function/xml-content.html" -}} {{- else }} {{ (.Summary | default .Description | default .Title) | transform.XMLEscape | safeHTML }} {{- end }} {{- end }}