{{ $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 }} {{ $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 := markdownify site.Copyright }} {{ $subpages := $page.RegularPagesRecursive }} {{ $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) }} {{ else }} {{ with $page.Title }} {{ $titles = slice (markdownify .) }} {{ end }} {{ range .Ancestors }} {{ $title := cond .IsHome (site.Title | default .Title) .Title | markdownify }} {{ with $title }} {{ $titles = append . $titles }} {{ end }} {{ end }} {{ end }} {{ $title := delimit $titles " · " }} {{ range $authors }} {{ with .email }} {{ . }} {{ end }} {{ with .name }} {{ . }} {{ end }} {{ with .url }} {{ . }} {{ end }} {{ end }} {{ with $icon }} {{ . }} {{ end }} {{ with $id }} {{ . }} {{ end }} {{ range $page.OutputFormats }} {{ $rel := cond (eq .Rel "canonical") "self" .Rel }} {{ $valid := in (slice "alternate" "enclosure" "related" "self" "via") $rel }} {{ if $valid }} {{ end }} {{ end }} {{ range $t := $page.Translations }} {{ range .OutputFormats }} {{ $valid := in (slice "alternate" "enclosure" "related" "self" "via") .Rel }} {{ if $valid }} {{ end }} {{ end }} {{ end }} {{ with $logo }} {{ . }} {{ end }} {{ with $rights }} {{ end }} {{ with $description }} {{ end }} {{ with $title }} <![CDATA[{{ . }}]]> {{ end }} {{ with $lastmod }} {{ . }} {{ end }} {{ range $subpage := $subpages }} {{ if not ($subpage.Param "paige.exclude_feeds") }} {{ $authors := partial "paige/func-authors.html" $subpage }} {{ $content := $subpage.Content }} {{ $description := markdownify $subpage.Description }} {{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }} {{ $id := cond ($subpage.Params.id | not) $subpage.RelPermalink $subpage.Params.id }} {{ $lastmod := $subpage.Lastmod.Format $date }} {{ $published := $subpage.PublishDate.Format $date }} {{ $title := markdownify $subpage.Title }} {{ $link := cond $external $subpage.Params.link $subpage.Permalink }} {{ if and $content $external }} {{ $text := or ($subpage.Param "paige.feeds.page_link" | markdownify) "⏎" }} {{ $footer := printf `

%s

` $subpage.Permalink $text | safeHTML }} {{ $content = print $content $footer }} {{ end }} {{ if not $content }} {{ $content = markdownify $subpage.Description }} {{ end }} {{ $content = replaceRE `` (printf `` $subpage.Permalink) $content }} {{ $content = replaceRE `` (printf `` $subpage.Permalink) $content }} {{ $content = partial "paige/func-minify.html" (dict "content" $content) }} {{ with $authors }} {{ 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 }} {{ end }} {{ with $id }} {{ . }} {{ end }} {{ range $subpage.OutputFormats }} {{ $rel := cond (eq .Rel "canonical") "alternate" .Rel }} {{ $href := cond (and (eq $rel "alternate") (eq .MediaType.Type "text/html")) $link .Permalink }} {{ $valid := in (slice "alternate" "enclosure" "related" "self" "via") $rel }} {{ if $valid }} {{ end }} {{ end }} {{ range $t := $subpage.Translations }} {{ range .OutputFormats }} {{ $valid := in (slice "alternate" "enclosure" "related" "self" "via") .Rel }} {{ if $valid }} {{ end }} {{ end }} {{ end }} {{ with $published }} {{ . }} {{ end }} {{ with $rights }} {{ end }} {{ with $description }} {{ end }} {{ with $title }} <![CDATA[{{ . }}]]> {{ end }} {{ with $lastmod }} {{ . }} {{ end }}
{{ end }} {{ end }}