From 9a3f4f40d9624fada56a19cd8e4d2944d8631e65 Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Mon, 15 Apr 2019 22:23:27 +0200 Subject: [PATCH] Fix RSS deprecation warning https://github.com/rhazdon/hugo-theme-hello-friend-ng/issues/12 --- layouts/partials/head.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 718d51a..d2b5f61 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -44,9 +44,9 @@ {{ end }} -{{ if .RSSLink }} - -{{ end }} +{{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} +{{ end -}} {{ if .OutputFormats.Get "json" }} @@ -57,4 +57,4 @@ {{- if templates.Exists "partials/extra-head.html" -}} {{ partial "extra-head.html" . }} -{{- end }} \ No newline at end of file +{{- end }}