Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/calintat/minimal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schemmel <daniel.schemmel@comsys.rwth-aachen.de>2019-06-05 20:06:57 +0300
committerCalin Tataru <calintat@gmail.com>2019-06-05 20:17:12 +0300
commit9ff8afb1a9439ad4d9b646bb2d621cc23d02989d (patch)
treeb20de3bb8d74ad4862e73d473b7c8e0a3519516e
parent51329628ae80c3e4dc1fbac2910337db92c86936 (diff)
fix deprecation warnings without breaking rss
-rw-r--r--layouts/partials/header.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 8176f59..2bb42b5 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -8,10 +8,10 @@
{{ if .Site.Params.favicon }}
<link rel="icon" href="{{ .Site.Params.favicon | absURL }}">
{{ end }}
- {{ partial "css" . }} {{ partial "js" . }} {{ .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 }}" />
+ {{ partial "css" . }} {{ partial "js" . }} {{ hugo.Generator }}
+ {{ with .OutputFormats.Get "RSS" }}
+ <link href="{{ .RelPermalink }}" rel="alternate" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
+ <link href="{{ .RelPermalink }}" rel="feed" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
{{ end }}
{{ if .Site.GoogleAnalytics }}