diff options
author | Hanzei <16541325+hanzei@users.noreply.github.com> | 2019-04-10 12:16:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 12:16:17 +0300 |
commit | 26f9dcc1f193479623a92aabeae4d1e67c1164c2 (patch) | |
tree | e8deea3f6479cba18f7b0f0bdbac860b14463b71 /layouts | |
parent | 3881a30ea5908cd6a4eb5c9ae888348f30e68a5a (diff) |
Replace deprecated RSSLink (#146)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head/metadata.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/layouts/partials/head/metadata.html b/layouts/partials/head/metadata.html index 7e8c3a0..ab1aded 100644 --- a/layouts/partials/head/metadata.html +++ b/layouts/partials/head/metadata.html @@ -9,6 +9,4 @@ {{ .Title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title }}{{ end }} </title> <!-- RSS --> -{{ if .RSSLink }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> -{{ end }} +{{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />{{ end }} |