summaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-24 07:38:38 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-24 07:38:38 +0200
commit018097da9cc6bcdac546666a193e86c6b83b2d95 (patch)
tree31fa2b6adbcab8533063ea47af2374a60d2554df /layouts/partials
parentcdffe9e910b5986b5a5021871e129d73123aa618 (diff)
downloadgohugo-theme-ed-018097da9cc6bcdac546666a193e86c6b83b2d95.tar.gz
Add rss support
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 8eb09f9..a324697 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -55,4 +55,9 @@
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="{{ "apple-touch-icon-precomposed.png" | relURL }}">
<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}">
+
+ <!-- RSS -->
+ {{- with .OutputFormats.Get "rss" }}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
+ {{- end }}
</head>