Fix RSS links #41
This commit is contained in:
parent
2781f35b83
commit
64b59a4e59
@ -44,13 +44,13 @@
|
|||||||
{{ if isset .Params "date" }}<meta property="article:published_time" content="{{ time .Date }}" />{{ end }}
|
{{ if isset .Params "date" }}<meta property="article:published_time" content="{{ time .Date }}" />{{ end }}
|
||||||
|
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
{{ if .RSSLink }}
|
{{ with .OutputFormats.Get "RSS" }}
|
||||||
<link href="{{ $.Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- JSON Feed -->
|
<!-- JSON Feed -->
|
||||||
{{ if .OutputFormats.Get "json" }}
|
{{ with .OutputFormats.Get "json" }}
|
||||||
<link href="{{ if .OutputFormats.Get "json" }}{{ "feed.json" | absURL }}{{ end }}" rel="alternate" type="application/json" title="{{ $.Site.Title }}" />
|
<link href="{{ .RelPermalink }}" rel="alternate" type="application/json" title="{{ $.Site.Title }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Extended head section-->
|
<!-- Extended head section-->
|
||||||
|
Loading…
Reference in New Issue
Block a user