From e1dd4d7d067c0476a89c8e0dc9e7f8d4d56d5e16 Mon Sep 17 00:00:00 2001 From: v1ne Date: Tue, 19 Nov 2019 22:16:58 +0100 Subject: [PATCH] Header: Only output RSS link if it's actually set If a subpage doesn't have any RSS link, don't output an empty link. --- layouts/partials/head.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 51aa5f4..e2b9c57 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,8 +6,10 @@ {{ partial "meta.html" . }} {{ partial "og.html" . }} - - + {{- with .OutputFormats.Get "rss" -}} + + {{- end }} +