Updated to-be-deprecated .RSSLink call

This commit is contained in:
V.H. Belvadi 2019-04-15 10:01:25 +05:30 committed by Alex Shpak
parent 4eae7c302d
commit 4054b1b520

View File

@ -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 }}
{{ "-->" | safeHTML }}