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

github.com/jsnjack/hugo-changelog-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Tsoy <maks.tsoy@gmail.com>2019-05-07 14:38:15 +0300
committerMaxim Tsoy <maks.tsoy@gmail.com>2019-05-07 14:38:15 +0300
commitf3cfe77742a2d6e82d47fe1e5f85a8da55807da7 (patch)
tree4c5a88b2e16353dc6b7e57fb90f806b8ede94727
parent71bc58bb761d2d3574cb03924dc1acc268127ee0 (diff)
Don't use a deprecated .RSSLink
-rw-r--r--layouts/partials/head.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index dac71f4..c135bea 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -16,7 +16,9 @@
<!-- Icons -->
<!-- RSS -->
- <link href="{{ .RSSLink | relURL }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ {{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
{{ $scss := resources.Get "changelog.scss" }}
{{ $style := $scss | resources.ToCSS | resources.Minify }}