From 777841e97684c556a0a701c2d971cc40d367f847 Mon Sep 17 00:00:00 2001 From: romainx Date: Tue, 6 Oct 2020 22:37:20 +0200 Subject: [PATCH] Fix RSSLink deprecation warning Page.RSSLink is deprecated and will be removed in a future release. Use the Output Format's link, e.g. something like: ` {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}`` https://gohugo.io/templates/rss/#reference-your-rss-feed-in-head --- layouts/partials/head.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index cb698f0..f50e24a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -11,4 +11,6 @@ - +{{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} +{{ end -}}