Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/htr3n/hyde-hyde.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Harms <tyler.harms@gmail.com>2019-04-14 06:43:37 +0300
committerTyler Harms <tyler.harms@gmail.com>2019-04-14 06:43:37 +0300
commit62a30ec21b786070d0ec4ae220e0cc2c514e800c (patch)
tree10c1afa8b4c899789cf328ad2c4615c2ffff2c5f
parent160b3d94005c7a7c2f5cb2d16d22c6ef3a64588c (diff)
Stop using deprecated .RSSLink
-rw-r--r--layouts/partials/header/feeds.html8
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 -}}