diff options
author | V.H. Belvadi <hello@vhbelvadi.com> | 2019-04-15 10:01:25 +0530 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-04-15 20:29:47 +0200 |
commit | 4054b1b520ae53328027ca477e1a9abc1733a11a (patch) | |
tree | f131f6793f07ddde520b88b11fd33472db421872 /layouts/partials | |
parent | 4eae7c302dfe92d87fb3d5e74d21658817540532 (diff) |
Updated to-be-deprecated .RSSLink call
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/docs/html-head.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 72542ca..7f7c0cc 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -14,12 +14,11 @@ <link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon"> <!-- RSS --> -{{ if .RSSLink }} -<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title | default "" }}" /> -<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title | default "" }}" /> -{{ end }} +{{ with .OutputFormats.Get "rss" -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} +{{ end -}} {{ "<!--" | safeHTML }} Made with Book Theme https://github.com/alex-shpak/hugo-book -{{ "-->" | safeHTML }}
\ No newline at end of file +{{ "-->" | safeHTML }} |