summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/docs/html-head.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html
index 72542ca..7f7c0cc 100644
--- a/layouts/partials/docs/html-head.html
+++ b/layouts/partials/docs/html-head.html
@@ -14,12 +14,11 @@
<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon">
<!-- RSS -->
-{{ if .RSSLink }}
-<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title | default "" }}" />
-<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title | default "" }}" />
-{{ end }}
+{{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+{{ end -}}
{{ "<!--" | safeHTML }}
Made with Book Theme
https://github.com/alex-shpak/hugo-book
-{{ "-->" | safeHTML }} \ No newline at end of file
+{{ "-->" | safeHTML }}