Include RSS alternate links

This commit is contained in:
Will Faught
2023-09-20 22:58:00 -07:00
parent 9338d27619
commit fcb373dd79

View File

@@ -14,6 +14,11 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
{{ printf `<atom:link href="%s" rel="self" type="application/rss+xml"/>` ($page.Permalink | safeURL) | safeHTML }}
{{ range $page.AlternativeOutputFormats }}
{{ if eq .Rel "alternate" }}
{{ printf `<atom:link href="%s" rel="alternate" type="%s"/>` (.Permalink | safeURL) .MediaType | safeHTML }}
{{ end }}
{{ end }}
{{ with site.Copyright }}
<copyright>{{ . }}</copyright>
{{ end }}