From d0e92ff479b00cffc23e2303123f046896539150 Mon Sep 17 00:00:00 2001 From: Robert Fekete Date: Thu, 21 Nov 2024 14:03:17 +0100 Subject: [PATCH] Don't show announcement bar if there are no announcements to show --- layouts/partials/banner.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/banner.html b/layouts/partials/banner.html index cc12d2063..067f85f60 100644 --- a/layouts/partials/banner.html +++ b/layouts/partials/banner.html @@ -1,10 +1,10 @@ {{ if .Params.show_banner -}} {{ $announcements := site.GetPage "announcements" -}} {{ if $announcements -}} + {{ range $announcements.RegularPages }} + {{ end -}} {{ end -}} {{ end -}} \ No newline at end of file