summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorSerdar Ormanlı2020-12-26 10:59:21 +0000
committerSerdar Ormanlı2020-12-27 23:02:35 +0300
commit3d9265e67afc4f2555ac3d59d17dbae4d83bfd02 (patch)
tree2b57c5b21cfe98070fff363fd855d3a6378cebb9 /layouts
parent1500c3c475e0ff99e6693dd11118e1a937b9ff34 (diff)
downloadhugo-theme-fuji-3d9265e67afc4f2555ac3d59d17dbae4d83bfd02.tar.gz
hugo-theme-fuji-3d9265e67afc4f2555ac3d59d17dbae4d83bfd02.tar.bz2
hugo-theme-fuji-3d9265e67afc4f2555ac3d59d17dbae4d83bfd02.zip
Added RSS reference to the header
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index f4ebe64..bd2eaea 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -26,6 +26,9 @@
{{ if .Params.tags }}
<meta name="keywords" content="{{ delimit .Params.tags ", " }}" />
{{ end }}
+{{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+{{ end -}}
<!-- og -->
{{ partial "opengraph.html" . }}
<!-- dep -->