diff options
author | Olivier Roques <olivier@oroques.dev> | 2020-11-25 11:06:18 +0100 |
---|---|---|
committer | Olivier Roques <olivier@oroques.dev> | 2020-11-25 11:06:47 +0100 |
commit | 19019bf8fdefbca6963bd550daaeb1fa61ffae3e (patch) | |
tree | cb711564f7c96d74b899dc39b0ec84ef061e5563 /layouts/partials | |
parent | b522ff81e0b5156c04ac85fe7ad36210666a9949 (diff) |
Add RSS link suggested by #9
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/head.html | 4 |
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 }} |