File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 4040
4141<rss version =" 2.0" {{ with $language }} xml : lang =" {{ . }}" {{ end }} xmlns : atom =" http://www.w3.org/2005/Atom" >
4242 <channel >
43- {{ with $page.OutputFormats.Get "rss" }}
44- <atom : link href =" {{ .Permalink }}" hreflang =" {{ $page.Language.LanguageCode }}" rel =" self" type =" application/rss+xml" />
45- {{ end }}
46-
47- {{ range $page.OutputFormats }}
48- {{ $rel := cond (eq .Rel "canonical") "alternate" .Rel }}
49-
50- <atom : link href =" {{ .Permalink }}" hreflang =" {{ $page.Language.LanguageCode }}" rel =" {{ $rel }}" type =" {{ .MediaType }}" />
51- {{ end }}
52-
53- {{ range $t := $page.Translations }}
54- {{ range .OutputFormats }}
55- <atom : link href =" {{ .Permalink }}" hreflang =" {{ $t.Language.LanguageCode }}" rel =" {{ .Rel }}" type =" {{ .MediaType }}" />
56- {{ end }}
57- {{ end }}
58-
5943 {{ with $copyright }}
6044 <copyright >{{ . }}</copyright >
6145 {{ end }}
7660 <link >{{ . }}</link >
7761 {{ end }}
7862
63+ {{ with $page.OutputFormats.Get "rss" }}
64+ <atom : link href =" {{ .Permalink }}" hreflang =" {{ $page.Language.LanguageCode }}" rel =" self" type =" application/rss+xml" />
65+ {{ end }}
66+
67+ {{ range $page.OutputFormats }}
68+ {{ $rel := cond (eq .Rel "canonical") "alternate" .Rel }}
69+
70+ <atom : link href =" {{ .Permalink }}" hreflang =" {{ $page.Language.LanguageCode }}" rel =" {{ $rel }}" type =" {{ .MediaType }}" />
71+ {{ end }}
72+
73+ {{ range $t := $page.Translations }}
74+ {{ range .OutputFormats }}
75+ <atom : link href =" {{ .Permalink }}" hreflang =" {{ $t.Language.LanguageCode }}" rel =" {{ .Rel }}" type =" {{ .MediaType }}" />
76+ {{ end }}
77+ {{ end }}
78+
7979 {{ with $editor }}
8080 <managingEditor >{{ . }}</managingEditor >
8181 {{ end }}
You can’t perform that action at this time.
0 commit comments