|
|
@ -4,8 +4,7 @@
|
|
|
|
{{ $format := "2006-01-02T15:04:05Z07:00" }}
|
|
|
|
{{ $format := "2006-01-02T15:04:05Z07:00" }}
|
|
|
|
{{ $html := $page.AlternativeOutputFormats.Get "html" }}
|
|
|
|
{{ $html := $page.AlternativeOutputFormats.Get "html" }}
|
|
|
|
{{ $icon := $page.Param "paige.feed.atom.icon" }}
|
|
|
|
{{ $icon := $page.Param "paige.feed.atom.icon" }}
|
|
|
|
{{ $id := "" }}
|
|
|
|
{{ $id := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") .RelPermalink }}
|
|
|
|
{{ $ids := dict }}
|
|
|
|
|
|
|
|
{{ $language := site.LanguageCode | default site.Language.Lang }}
|
|
|
|
{{ $language := site.LanguageCode | default site.Language.Lang }}
|
|
|
|
{{ $limit := site.Config.Services.RSS.Limit }}
|
|
|
|
{{ $limit := site.Config.Services.RSS.Limit }}
|
|
|
|
{{ $logo := $page.Param "paige.feed.atom.logo" }}
|
|
|
|
{{ $logo := $page.Param "paige.feed.atom.logo" }}
|
|
|
@ -20,14 +19,6 @@
|
|
|
|
{{ $icon = absLangURL $icon }}
|
|
|
|
{{ $icon = absLangURL $icon }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if $page.Params.id }}
|
|
|
|
|
|
|
|
{{ $id = printf "%s?id=%v" (urls.JoinPath site.BaseURL "/") $page.Params.id }}
|
|
|
|
|
|
|
|
{{ else if not $page.Date.IsZero }}
|
|
|
|
|
|
|
|
{{ $id = printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host ($page.Date.Format "2006-01-02") ($page.Date.Format $format) }}
|
|
|
|
|
|
|
|
{{ else }}
|
|
|
|
|
|
|
|
{{ $id = $page.Permalink }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if $logo }}
|
|
|
|
{{ if $logo }}
|
|
|
|
{{ $logo = absLangURL $logo }}
|
|
|
|
{{ $logo = absLangURL $logo }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
@ -118,7 +109,7 @@
|
|
|
|
{{ range $subpage := $subpages }}
|
|
|
|
{{ range $subpage := $subpages }}
|
|
|
|
<entry>
|
|
|
|
<entry>
|
|
|
|
{{ $content := .Content }}
|
|
|
|
{{ $content := .Content }}
|
|
|
|
{{ $id := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") (cond (.Params.id | not) .RelPermalink .Params.id) }}
|
|
|
|
{{ $id := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") .RelPermalink }}
|
|
|
|
{{ $paramlink := and .Params.link (not (.Param "paige.feed.link_to_page")) | not | not }}
|
|
|
|
{{ $paramlink := and .Params.link (not (.Param "paige.feed.link_to_page")) | not | not }}
|
|
|
|
{{ $published := cond (not .PublishDate.IsZero) (.PublishDate.Format $format) "" }}
|
|
|
|
{{ $published := cond (not .PublishDate.IsZero) (.PublishDate.Format $format) "" }}
|
|
|
|
{{ $rights := site.Copyright | markdownify }}
|
|
|
|
{{ $rights := site.Copyright | markdownify }}
|
|
|
@ -139,12 +130,6 @@
|
|
|
|
{{ $content = .Description | markdownify}}
|
|
|
|
{{ $content = .Description | markdownify}}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ with index $ids $id }}
|
|
|
|
|
|
|
|
{{ warnf "layouts/_default/list.atom.xml: pages %s and %s have the same ID" . $subpage.RelPermalink }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ $ids = merge (dict $id .RelPermalink) $ids }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if not $title }}
|
|
|
|
{{ if not $title }}
|
|
|
|
{{ warnf "layouts/_default/list.atom.xml: page %s does not have a title" .RelPermalink }}
|
|
|
|
{{ warnf "layouts/_default/list.atom.xml: page %s does not have a title" .RelPermalink }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|