Add self links to feeds
This commit is contained in:
		| @@ -64,6 +64,10 @@ | ||||
|         <id>{{ . }}</id> | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ with $page.OutputFormats.Get "atom" }} | ||||
|         <link href="{{ .Permalink }}" hreflang="{{ $page.Language.LanguageCode }}" rel="self" type="application/atom+xml"/> | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ range $page.OutputFormats }} | ||||
|         {{ $rel := cond (eq .Rel "canonical") "alternate" .Rel }} | ||||
|  | ||||
| @@ -152,6 +156,8 @@ | ||||
|                     <id>{{ . }}</id> | ||||
|                 {{ end }} | ||||
|  | ||||
|                 <link href="{{ $subpage.Permalink }}" hreflang="{{ $subpage.Language.LanguageCode }}" rel="self" type="text/html"/> | ||||
|  | ||||
|                 {{ range $subpage.OutputFormats }} | ||||
|                     {{ $rel := cond (eq .Rel "canonical") "alternate" .Rel }} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user