Fix RSS deprecation warning

https://github.com/rhazdon/hugo-theme-hello-friend-ng/issues/12
This commit is contained in:
Djordje Atlialp 2019-04-15 22:23:27 +02:00
parent 7596045757
commit 9a3f4f40d9
No known key found for this signature in database
GPG key ID: 94FF806E6BF61DD3

View file

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