diff options
author | Rajesh Shenoy <shenoybr@users.noreply.github.com> | 2018-03-28 20:33:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 20:33:57 +0300 |
commit | 0879eadc51469412e096f2df4c046c1a0b3a20f9 (patch) | |
tree | 357d29b266ecfacec0011c80f328a8e119ae3751 | |
parent | b412c34a164a9bd2e0f0d7e42e5f3f21695c01a0 (diff) | |
parent | fe7f71e89103c90e3d11d8646e572bdec9042674 (diff) |
Merge pull request #41 from DanySpin97/rss-template
Update rss link included in header
-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"> |