Merge pull request #69 from harmstyler/feature/change-feeds-tpl

Stop using deprecated .RSSLink.
This commit is contained in:
Huy Tran 2019-04-17 19:22:25 +07:00 committed by GitHub
commit 5e5549399b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,3 @@
{{ if .RSSLink }} {{ range .AlternativeOutputFormats -}}
<!-- RSS --> {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end -}}
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}