From bbe726e57038b97df811731330fe2c35f5043964 Mon Sep 17 00:00:00 2001 From: JeffHome Date: Thu, 28 May 2020 21:18:10 +0200 Subject: fix Page.RSSLink deprecated --- layouts/partials/header.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7ef8f11..82da728 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -10,10 +10,9 @@ - {{ if .RSSLink }} - - -{{ end }} + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} -- cgit v1.2.3