diff options
author | Maxim Tsoy <maks.tsoy@gmail.com> | 2019-05-07 14:38:15 +0300 |
---|---|---|
committer | Maxim Tsoy <maks.tsoy@gmail.com> | 2019-05-07 14:38:15 +0300 |
commit | f3cfe77742a2d6e82d47fe1e5f85a8da55807da7 (patch) | |
tree | 4c5a88b2e16353dc6b7e57fb90f806b8ede94727 | |
parent | 71bc58bb761d2d3574cb03924dc1acc268127ee0 (diff) |
Don't use a deprecated .RSSLink
-rw-r--r-- | layouts/partials/head.html | 4 |
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 }} |