master
Will Faught 5 months ago
parent 14607036c6
commit 5f244b4e2c

@ -10,6 +10,7 @@
{{ $rights := site.Copyright | markdownify }} {{ $rights := site.Copyright | markdownify }}
{{ $subpages := slice }} {{ $subpages := slice }}
{{ $subtitle := $page.Description | markdownify }} {{ $subtitle := $page.Description | markdownify }}
{{ $updated := site.Lastmod.Format $format }} {{ $updated := site.Lastmod.Format $format }}
{{ range $page.RegularPagesRecursive.ByPublishDate.Reverse }} {{ range $page.RegularPagesRecursive.ByPublishDate.Reverse }}
@ -35,6 +36,7 @@
{{ end }} {{ end }}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }} {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
<feed {{ with $language }} xml:lang="{{ . }}" {{ end }} xmlns="http://www.w3.org/2005/Atom"> <feed {{ with $language }} xml:lang="{{ . }}" {{ end }} xmlns="http://www.w3.org/2005/Atom">
{{ range $authors }} {{ range $authors }}
<author> <author>
@ -93,6 +95,7 @@
{{ end }} {{ end }}
{{ printf `<title type="html"><![CDATA[%s]]></title>` $title | safeHTML }} {{ printf `<title type="html"><![CDATA[%s]]></title>` $title | safeHTML }}
<updated>{{ $updated }}</updated> <updated>{{ $updated }}</updated>
{{ range $subpage := $subpages }} {{ range $subpage := $subpages }}
@ -182,6 +185,7 @@
{{ end }} {{ end }}
{{ printf `<title type="html"><![CDATA[%s]]></title>` $title | safeHTML }} {{ printf `<title type="html"><![CDATA[%s]]></title>` $title | safeHTML }}
<updated>{{ $updated }}</updated> <updated>{{ $updated }}</updated>
</entry> </entry>
{{ end }} {{ end }}

@ -38,6 +38,7 @@
{{ end }} {{ end }}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }} {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
<rss version="2.0" {{ with $language }} xml:lang="{{ . }}" {{ end }} xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" {{ with $language }} xml:lang="{{ . }}" {{ end }} xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
{{ range $page.OutputFormats }} {{ range $page.OutputFormats }}

Loading…
Cancel
Save