diff options
| author | 南小北 <nanxiaobei@gmail.com> | 2020-05-25 22:39:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-25 22:39:50 +0800 |
| commit | 09321ade2fc7fd15682468f3b898dace610b2c50 (patch) | |
| tree | d4f53ad82cbaf06dd083c36351468e2920f4f7d5 | |
| parent | 85ff837f9782be9ff60fa1222eb61ddf76abfc0b (diff) | |
| parent | 91dabb761fa9c70e5553d2ba604afa7768d8c92a (diff) | |
Merge pull request #56 from tarampampam/patch-1
Fix RSS links
| -rw-r--r-- | layouts/partials/header.html | 4 |
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" . }} |
