Updated to-be-deprecated .RSSLink call
This commit is contained in:
parent
4eae7c302d
commit
4054b1b520
1 changed files with 4 additions and 5 deletions
|
@ -14,12 +14,11 @@
|
||||||
<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon">
|
<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon">
|
||||||
|
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
{{ if .RSSLink }}
|
{{ with .OutputFormats.Get "rss" -}}
|
||||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title | default "" }}" />
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title | default "" }}" />
|
{{ end -}}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ "<!--" | safeHTML }}
|
{{ "<!--" | safeHTML }}
|
||||||
Made with Book Theme
|
Made with Book Theme
|
||||||
https://github.com/alex-shpak/hugo-book
|
https://github.com/alex-shpak/hugo-book
|
||||||
{{ "-->" | safeHTML }}
|
{{ "-->" | safeHTML }}
|
||||||
|
|
Loading…
Reference in a new issue