summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author南小北 <nanxiaobei@gmail.com>2020-05-25 22:39:50 +0800
committerGitHub <noreply@github.com>2020-05-25 22:39:50 +0800
commit09321ade2fc7fd15682468f3b898dace610b2c50 (patch)
treed4f53ad82cbaf06dd083c36351468e2920f4f7d5
parent85ff837f9782be9ff60fa1222eb61ddf76abfc0b (diff)
parent91dabb761fa9c70e5553d2ba604afa7768d8c92a (diff)
Merge pull request #56 from tarampampam/patch-1
Fix RSS links
-rw-r--r--layouts/partials/header.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index efd2157..dd941ec 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -24,7 +24,9 @@
<!-- Generator -->
{{- hugo.Generator }}
<!-- RSS -->
- <link rel="alternate" type="application/atom+xml" href="{{ "index.xml" | absURL }}" title="{{ .Site.Title }}">
+ {{ range .AlternativeOutputFormats -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
<!-- Misc -->
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
{{- template "_internal/google_analytics_async.html" . }}