diff options
author | Daniel Schemmel <daniel.schemmel@comsys.rwth-aachen.de> | 2019-06-05 20:06:57 +0300 |
---|---|---|
committer | Calin Tataru <calintat@gmail.com> | 2019-06-05 20:17:12 +0300 |
commit | 9ff8afb1a9439ad4d9b646bb2d621cc23d02989d (patch) | |
tree | b20de3bb8d74ad4862e73d473b7c8e0a3519516e | |
parent | 51329628ae80c3e4dc1fbac2910337db92c86936 (diff) |
fix deprecation warnings without breaking rss
-rw-r--r-- | layouts/partials/header.html | 8 |
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 }} |