diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml
index bf906468..663356df 100644
--- a/layouts/_default/list.atom.xml
+++ b/layouts/_default/list.atom.xml
@@ -36,15 +36,19 @@
{{ with .email }}
{{ . }}
{{ end }}
+
{{ with .name }}
{{ . }}
{{ end }}
+
{{ with .url }}
{{ . }}
{{ end }}
{{ end }}
+
{{ $id := "" }}
+
{{ if .Params.id }}
{{ $id = .Params.id }}
{{ else if not $page.Date.IsZero }}
@@ -52,11 +56,14 @@
{{ else }}
{{ $id = .Permalink }}
{{ end }}
+
{{ $id }}
{{ printf `` ($page.Permalink | safeURL) | safeHTML }}
+
{{ with $page.AlternativeOutputFormats.Get "html" }}
{{ printf `` (.Permalink | safeURL) .MediaType | safeHTML }}
{{ end }}
+
{{ range $t := $page.Translations }}
{{ range .OutputFormats }}
{{ if eq .Rel "alternate" }}
@@ -64,18 +71,24 @@
{{ end }}
{{ end }}
{{ end }}
+
{{ with $rights }}
{{ printf "" (. | markdownify) | safeHTML }}
{{ end }}
+
{{ with $subtitle }}
{{ printf "" (. | markdownify) | safeHTML}}
{{ end }}
+
{{ if not $title }}
{{ warnf "layouts/_default/list.atom.xml: Page %s does not have a title" $page.RelPermalink }}
{{ end }}
+
{{ printf `
` ($title | markdownify) | safeHTML }}
{{ $updated.Format "2006-01-02T15:04:05Z07:00" }}
+
{{ $ids := dict }}
+
{{ range $subpage := $subpages }}
{{ with partial "paige/authors.html" . }}
@@ -84,25 +97,33 @@
{{ with .email }}
{{ . }}
{{ end }}
+
{{ with .name }}
{{ . }}
{{ end }}
+
{{ with .url }}
{{ . }}
{{ end }}
{{ end }}
{{ end }}
+
{{ $content := .Content }}
+
{{ if $content }}
{{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }}
{{ $link := or (.Param "paige.feed.page_link" | markdownify) "⏎" }}
{{ $footer := printf `%s
` .Permalink .Title $link }}
+
{{ $content = print $content $footer }}
{{ end }}
+
{{ printf "" $content | safeHTML }}
{{ end }}
+
{{ $id := "" }}
+
{{ if .Params.id }}
{{ $id = .Params.id }}
{{ else if not .Date.IsZero }}
@@ -110,16 +131,20 @@
{{ else }}
{{ $id = .RelPermalink }}
{{ 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 }}
{{ $id }}
+
{{ range .OutputFormats }}
{{ if eq .Rel "alternate" }}
{{ printf `` (.Permalink | safeURL) .MediaType | safeHTML }}
{{ end }}
{{ end }}
+
{{ range $t := .Translations }}
{{ range .OutputFormats }}
{{ if eq .Rel "alternate" }}
@@ -127,27 +152,35 @@
{{ end }}
{{ end }}
{{ end }}
+
{{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }}
{{ else }}
{{ end }}
+
{{ if not .PublishDate.IsZero }}
{{ .PublishDate.Format "2006-01-02T15:04:05Z07:00" }}
{{ end }}
+
{{ with site.Copyright }}
{{ printf "" (. | markdownify) | safeHTML }}
{{ end }}
+
{{ with .Description }}
{{ printf "" (. | markdownify) | safeHTML }}
{{ end }}
+
{{ if not .Title }}
{{ warnf "layouts/_default/list.atom.xml: %s: Page %s does not have a title" .RelPermalink }}
{{ end }}
+
{{ printf `` (.Title | markdownify) | safeHTML }}
+
{{ if .Lastmod.IsZero }}
{{ warnf "layouts/_default/list.atom.xml: Page %s does not have a modified date" .RelPermalink }}
{{ end }}
+
{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}
{{ end }}
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 339dafd2..827d16fb 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -91,6 +91,7 @@
{{ if $paramlink }}
{{ $pagelink := or (.Param "paige.feed.page_link" | markdownify) "⏎" }}
{{ $footer := printf `%s
` .Permalink $title $pagelink }}
+
{{ $description = print $description $footer }}
{{ end }}
{{ end }}