diff options
author | Shaform <shaform@gmail.com> | 2019-08-16 19:59:42 +0300 |
---|---|---|
committer | Shaform <shaform@gmail.com> | 2019-08-16 19:59:42 +0300 |
commit | 0da7206bdb8c4b2332785011cd87ed3b4ba15e79 (patch) | |
tree | d6d6f600afd5c3e100360efd7f3c154de9861e6e | |
parent | 553b158be852cff4893171a29e30d253939d8886 (diff) |
remove RSSLink
-rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index abe18af..3011c1b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -36,8 +36,8 @@ <link rel="stylesheet" href="{{ "css/" | absURL }}{{ . }}"> {{ end }} -{{ if .RSSLink }} -<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> +{{ with .OutputFormats.Get "RSS" }} +<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" /> {{ end }} {{/* https://gohugo.io/templates/internal/ */}} |