diff options
author | DSRKafuU | 2021-03-05 16:50:20 +0800 |
---|---|---|
committer | GitHub | 2021-03-05 16:50:20 +0800 |
commit | 014e44a247b90628c4706fe7a69db4664daba3c5 (patch) | |
tree | 528d0f4c3c73fe6d5a1c5598d96eb7295fdcb6d5 | |
parent | 03dab0504328ae49ab32ec8d7c7aa317d4be0173 (diff) | |
parent | 3d9265e67afc4f2555ac3d59d17dbae4d83bfd02 (diff) | |
download | hugo-theme-fuji-014e44a247b90628c4706fe7a69db4664daba3c5.tar.gz hugo-theme-fuji-014e44a247b90628c4706fe7a69db4664daba3c5.tar.bz2 hugo-theme-fuji-014e44a247b90628c4706fe7a69db4664daba3c5.zip |
feat(rss): pull request #62 from ormanli/master
Added RSS reference to the header
-rw-r--r-- | layouts/partials/head.html | 3 |
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 --> |