Fix RSS deprecation warning
https://github.com/rhazdon/hugo-theme-hello-friend-ng/issues/12
This commit is contained in:
parent
7596045757
commit
9a3f4f40d9
1 changed files with 4 additions and 4 deletions
|
@ -44,9 +44,9 @@
|
||||||
<meta property="article:published_time" content="{{ time .Date }}" />{{ end }}
|
<meta property="article:published_time" content="{{ time .Date }}" />{{ end }}
|
||||||
|
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
{{ if .RSSLink }}
|
{{ with .OutputFormats.Get "rss" -}}
|
||||||
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
|
|
||||||
<!-- JSON Feed -->
|
<!-- JSON Feed -->
|
||||||
{{ if .OutputFormats.Get "json" }}
|
{{ if .OutputFormats.Get "json" }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue