{{ $page := . }} {{ $authors := $page.Param "paige.feeds.atom.authors" }} {{ $date := "2006-01-02T15:04:05Z07:00" }} {{ $description := cond $page.IsHome ($page.Param "paige.site.description") $page.Description | markdownify | plainify | htmlUnescape }} {{ $icon := $page.Param "paige.feeds.atom.icon" | absLangURL }} {{ $id := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") .RelPermalink }} {{ $language := site.LanguageCode }} {{ $limit := site.Config.Services.RSS.Limit }} {{ $logo := $page.Param "paige.feeds.atom.logo" | absLangURL }} {{ $rights := site.Copyright | markdownify }} {{ $subpages := $page.RegularPagesRecursive.ByPublishDate }} {{ $lastmod := site.Lastmod.Format $date }} {{ if gt $limit 0 }} {{ $subpages = first $limit $subpages }} {{ end }} {{ $titles := slice }} {{ if $page.IsHome }} {{ $titles = slice (site.Title | default $page.Title | markdownify | plainify | htmlUnescape) }} {{ else }} {{ with $page.Title }} {{ $titles = slice (. | markdownify | plainify | htmlUnescape) }} {{ end }} {{ range .Ancestors }} {{ $title := cond .IsHome (site.Title | default .Title) .Title }} {{ with $title }} {{ $titles = $titles | append (. | markdownify | plainify | htmlUnescape) }} {{ end }} {{ end }} {{ end }} {{ $title := delimit $titles " · " }} {{ printf "" | safeHTML }} {{ range $authors }} {{ with .email }} {{ . }} {{ end }} {{ with .name }} {{ . }} {{ end }} {{ with .url }} {{ . }} {{ end }} {{ end }} {{ with $icon }} {{ . }} {{ end }} {{ $id }} {{ range $page.OutputFormats }} {{ $rel := cond (eq .Rel "canonical") "self" .Rel }} {{ printf `` .Permalink $rel .MediaType | safeHTML }} {{ end }} {{ range $t := $page.Translations }} {{ range .OutputFormats }} {{ printf `` .Permalink $t.Lang .Rel .MediaType | safeHTML }} {{ end }} {{ end }} {{ with $logo }} {{ . }} {{ end }} {{ with $rights }} {{ printf "" . | safeHTML }} {{ end }} {{ with $description }} {{ printf "" . | safeHTML }} {{ end }} {{ printf `<![CDATA[%s]]>` $title | safeHTML }} {{ $lastmod }} {{ range $subpages }} {{ if not (.Param "paige.exclude_feeds") }} {{ $content := .Content }} {{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }} {{ $id := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") .RelPermalink }} {{ $lastmod := .Lastmod.Format $date }} {{ $published := cond (not .PublishDate.IsZero) (.PublishDate.Format $date) "" }} {{ $summary := markdownify .Description }} {{ $title := markdownify .Title }} {{ $link := cond $external .Params.link .Permalink }} {{ if and $content $external }} {{ $text := or (.Param "paige.feeds.page_link" | markdownify) "⏎" }} {{ $footer := printf `

%s

` .Permalink (htmlEscape .Title) $text | safeHTML }} {{ $content = print $content $footer }} {{ end }} {{ if not $content }} {{ $content = markdownify .Description }} {{ end }} {{ with partial "paige/func-authors.html" . }} {{ range . }} {{ with .Params.paige.author.email }} {{ . }} {{ end }} {{ with .Params.paige.author.name | default (.Title | markdownify | plainify | htmlUnescape) }} {{ . }} {{ end }} {{ with .Params.paige.author.url }} {{ . }} {{ end }} {{ end }} {{ end }} {{ with $content }} {{ printf "" . | safeHTML }} {{ end }} {{ $id }} {{ range .OutputFormats }} {{ $rel := cond (eq .Rel "canonical") "self" .Rel }} {{ $href := cond (and (eq $rel "alternate") (eq .MediaType.Type "text/html")) $link .Permalink }} {{ end }} {{ range $t := .Translations }} {{ range .OutputFormats }} {{ end }} {{ end }} {{ with $published }} {{ . }} {{ end }} {{ with $rights }} {{ printf "" . | safeHTML }} {{ end }} {{ with $summary }} {{ printf "" . | safeHTML }} {{ end }} {{ printf `<![CDATA[%s]]>` $title | safeHTML }} {{ $lastmod }}
{{ end }} {{ end }}