Fix rss link in head

This commit is contained in:
kolaente 2020-01-20 22:56:13 +01:00
parent 51e3ae824b
commit 091c151f7a
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 4 deletions

View File

@ -16,10 +16,9 @@
<title>{{ if and (not .IsHome) .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
{{ with .RSSLink }}
<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }}
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
<link rel="canonical" href="{{ .Permalink }}">