diff options
author | Danilo Spinella <danyspin97@protonmail.com> | 2018-02-24 02:59:29 +0300 |
---|---|---|
committer | Danilo Spinella <danyspin97@protonmail.com> | 2018-02-24 02:59:29 +0300 |
commit | fe7f71e89103c90e3d11d8646e572bdec9042674 (patch) | |
tree | 7b0269806d977fdbb945680fb64225a16cba8071 | |
parent | e571b7a7889c0520f3e79a8f9bffbd2ad92534f2 (diff) |
Update rss link included in header
Rss link generation in hugo documentation is wrong according to this
issue. Replace it with the correct links.
Issue: gohugoio/hugoDocs#369
-rw-r--r-- | layouts/partials/header.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index fef64a0..8b4a481 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -16,10 +16,9 @@ {{ .Hugo.Generator }} -{{ if .RSSLink }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> - <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> -{{ end }} +{{ range .AlternativeOutputFormats -}} + <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> +{{ end -}} {{ if .Site.Params.extra.highlightjs }} <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.extra.highlightjsstyle | default "default" }}.min.css"> |