summaryrefslogtreecommitdiff
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorFrancesco Tomaselli <tomaselli.fr@gmail.com>2024-08-13 19:20:40 +0200
committerGitHub <noreply@github.com>2024-08-13 19:20:40 +0200
commitfcbc8882f28293ab0e2048d432cab42778479244 (patch)
treeb9d137bab1e55f13139fe65f4259eedc2e208c4f /layouts/partials/head.html
parentc4dc247623cefc3be28e01a5ac1cc27fc5188ce6 (diff)
parent6a2bf3a1cb10a68173e2ad6cb6abcf5d7ac657d3 (diff)
Merge pull request #14 from jder/main
Add RSS feed link
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 bf00a74..508b391 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,6 +1,10 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
+{{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
+{{ end }}
+
{{- if .IsHome -}}
<meta name="description" content="{{ site.Params.Description }}" />
{{- else -}}