Fix self links to alternate
This commit is contained in:
@@ -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 }}
|
||||
|
||||
|
Reference in New Issue
Block a user