Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ojroques/hugo-researcher.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Roques <olivier@oroques.dev>2020-11-25 13:06:18 +0300
committerOlivier Roques <olivier@oroques.dev>2020-11-25 13:06:47 +0300
commite2c5b8073f97bc5848afbb303785adb4af079457 (patch)
treecb711564f7c96d74b899dc39b0ec84ef061e5563
parent51fc9574a00b9399a8734a9849e8c2796ea05e75 (diff)
Add RSS link suggested by #9
-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 }}