{{- $pages := .Pages -}} {{- /* Front matter: password */ -}} {{- $pages = where $pages "Params.password" "eq" nil -}} {{- /* Front matter: hiddenFromFeed */ -}} {{- $pages = where $pages "Params.hiddenFromFeed" "ne" true -}} {{- 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.feedId) (.Site.Params.feed.follow.userId) }} {{ .Site.Params.feed.follow.feedId }} {{ .Site.Params.feed.follow.userId }} {{- end }} Hugo {{ hugo.Version }} & FixIt {{ hugo.Store.Get "version" }} {{ .Site.Language.LanguageCode }}{{ 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 }} {{- $params := .Params | merge .Site.Params.Page }} {{- $fullText := ((.Params.feed | default dict) | merge $.Config ).fulltext }} {{- $author := partial "function/get-author-map.html" .Params.author }} {{- $image := $params.featuredimagepreview | default $params.featuredimage }} {{- with dict "Path" $image "Resources" .Resources | partial "function/resource.html" }} {{- $image = .Permalink }} {{- end }} {{- with .Resources.GetMatch "featured-image" }} {{- $image = .Permalink }} {{- end }} {{- with .Resources.GetMatch "featured-image-preview" }} {{- $image = .Permalink }} {{- end }} {{ .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" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome "FeaturedImage" $image | partial "function/xml-content.html" -}} {{- else }} {{ (.Summary | default .Description | default .Title) | transform.XMLEscape | safeHTML }} {{- end }} {{- end }}