Fix self links to alternate

This commit is contained in:
Will Faught
2025-03-10 00:26:09 -07:00
parent 76b158fba4
commit 8071471400
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@
<rss version="2.0" {{ with $language }} xml:lang="{{ . }}" {{ end }} xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
{{ range $page.OutputFormats }}
{{ $rel := cond (eq .Rel "canonical") "self" .Rel }}
{{ $rel := cond (eq .Rel "canonical") "alternate" .Rel }}
{{ $valid := in (slice "alternate" "enclosure" "related" "self" "via") $rel }}