Skip to content

Commit

Permalink
Merge pull request spf13#69 from harmstyler/feature/change-feeds-tpl
Browse files Browse the repository at this point in the history
Stop using deprecated .RSSLink.
  • Loading branch information
htr3n authored Apr 17, 2019
2 parents 160b3d9 + 62a30ec commit 5e55493
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions layouts/partials/header/feeds.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{{ if .RSSLink }}
<!-- RSS -->
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}

0 comments on commit 5e55493

Please sign in to comment.