summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanxiaobei <nanxiaobei@gmail.com>2020-06-12 05:23:49 +0800
committernanxiaobei <nanxiaobei@gmail.com>2020-06-12 05:23:49 +0800
commit6ef3e7cbfed59b518deec32e2092a203ceccc423 (patch)
treef3e8f4ae5c2e12fb76c20dc869029a6465eb45ef
parent8ef7ae81bab916ab046543c4ba45b86f00f05e9e (diff)
parent09321ade2fc7fd15682468f3b898dace610b2c50 (diff)
Merge branch 'master' of https://github.com/nanxiaobei/hugo-paper
-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" . }}