diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 12de83e..bfaaa2f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -31,9 +31,9 @@ </title> <meta name="title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end}}"> {{ partial "css" . }} - {{ if .RSSLink }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> - <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> + {{ with .OutputFormats.Get "RSS" }} + <link rel="alternate" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ site.Title }}"> + <link rel="feed" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ site.Title }}"> {{ end }} {{- template "_internal/twitter_cards.html" . }} {{ partial "seo_schema" . }} @@ -45,3 +45,4 @@ {{ end }} {{ end }} {{ .Scratch.Set "cdn_url" $cdn_url }} + |