diff options
author | Tyler Harms <tyler.harms@gmail.com> | 2019-04-14 06:43:37 +0300 |
---|---|---|
committer | Tyler Harms <tyler.harms@gmail.com> | 2019-04-14 06:43:37 +0300 |
commit | 62a30ec21b786070d0ec4ae220e0cc2c514e800c (patch) | |
tree | 10c1afa8b4c899789cf328ad2c4615c2ffff2c5f | |
parent | 160b3d94005c7a7c2f5cb2d16d22c6ef3a64588c (diff) |
Stop using deprecated .RSSLink
-rw-r--r-- | layouts/partials/header/feeds.html | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/layouts/partials/header/feeds.html b/layouts/partials/header/feeds.html index f60462c..914f423 100644 --- a/layouts/partials/header/feeds.html +++ b/layouts/partials/header/feeds.html @@ -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 -}} |