Fix rss link in head
This commit is contained in:
parent
51e3ae824b
commit
091c151f7a
|
@ -16,10 +16,9 @@
|
||||||
|
|
||||||
<title>{{ if and (not .IsHome) .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
<title>{{ if and (not .IsHome) .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
||||||
|
|
||||||
{{ with .RSSLink }}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
<link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
{{ end -}}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue