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

github.com/amzrk2/hugo-theme-fuji.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDSRKafuU <dsrkafuu@outlook.com>2021-03-05 11:50:20 +0300
committerGitHub <noreply@github.com>2021-03-05 11:50:20 +0300
commit014e44a247b90628c4706fe7a69db4664daba3c5 (patch)
tree528d0f4c3c73fe6d5a1c5598d96eb7295fdcb6d5
parent03dab0504328ae49ab32ec8d7c7aa317d4be0173 (diff)
parent3d9265e67afc4f2555ac3d59d17dbae4d83bfd02 (diff)
feat(rss): pull request #62 from ormanli/master
Added RSS reference to the header
-rw-r--r--layouts/partials/head.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 85c840a..c9f194a 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -26,6 +26,9 @@
{{ if .Params.tags }}
<meta name="keywords" content="{{ delimit .Params.tags ", " }}" />
{{ end }}
+{{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+{{ end -}}
<!-- og -->
{{ partial "opengraph.html" . }}
<!-- dep -->