diff options
author | Leo Davis <ldav1s@yahoo.com> | 2019-04-05 08:21:53 +0300 |
---|---|---|
committer | Leo Davis <ldav1s@yahoo.com> | 2019-04-05 08:21:53 +0300 |
commit | 5bebace86b826173221d54f01c2f6bc222b0f57e (patch) | |
tree | 9390baec71524840575cf71b869a0dacd7062141 | |
parent | 2599ffe8fba1ca9a8b4706d0d14c946f180cd494 (diff) |
Remove deprecated RSSLink.
-rw-r--r-- | layouts/index.html | 8 | ||||
-rw-r--r-- | layouts/partials/header.html | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/layouts/index.html b/layouts/index.html index c4b8216..eb2688a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -11,13 +11,15 @@ <title>{{ .Site.Title }}</title> <link rel="canonical" href="{{ .Permalink }}" /> +{{ $sitetitle := .Site.Title }} +{{ with .OutputFormats.Get "RSS" }} <link - href="{{ .RSSLink }}" + href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" - title="{{ .Site.Title }}" + title="{{ $sitetitle }}" /> - +{{ end }} {{ partial "head_includes.html" . }} </head> <body diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 040833f..a3b5f6a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -11,14 +11,15 @@ <title>{{ .Title }}</title> <link rel="canonical" href="{{ .Permalink }}" /> - +{{ $title := .Title }} +{{ with .OutputFormats.Get "RSS" }} <link - href="{{ .RSSLink }}" + href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" - title="{{ .Title }}" + title="{{ $title }}" /> - +{{ end }} {{ partial "head_includes.html" . }} <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> |