aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2019-09-08 22:17:31 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2019-09-08 22:17:31 +0800
commitd53092e8b213c2023e95ba3c6dc59dfc0b2f7815 (patch)
treea2a061b2ac4c2cf96c2f704a49a0d63c42dfcc77 /layouts/partials
parent5a3e5599d2a2bb509014b31901be813387f3edba (diff)
refactor(head.html): Page's .RSSLink is deprecated
This closes #162, closes #187
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 9da15a2..bdfaedd 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -37,9 +37,9 @@
<!-- Permalink & RSSlink -->
<link rel="canonical" href="{{ .Permalink }}" />
-{{- if .RSSLink }}
- <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
- <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
+{{- with .OutputFormats.Get "RSS" }}
+ <link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
+ <link href="{{ .Permalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{- end -}}
<!-- Favicon and Touch icons -->