aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorOlivier Roques <olivier@oroques.dev>2020-11-25 11:06:18 +0100
committerOlivier Roques <olivier@oroques.dev>2020-11-25 11:06:47 +0100
commit19019bf8fdefbca6963bd550daaeb1fa61ffae3e (patch)
treecb711564f7c96d74b899dc39b0ec84ef061e5563 /layouts/partials/head.html
parentb522ff81e0b5156c04ac85fe7ad36210666a9949 (diff)
Add RSS link suggested by #9
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index bc0864a..6c35dd1 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -16,6 +16,10 @@
<link rel="icon" type="image/ico" href="{{ . | absURL }}">
{{ end }}
+ {{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}