From bef8761d83890f6c403715fbb85d593f4843d842 Mon Sep 17 00:00:00 2001 From: Matt Stratton Date: Thu, 18 Feb 2021 10:25:13 -0600 Subject: [PATCH] Make blog post button not appear if not needed (#339) Fixes #338 Signed-off-by: Matt Stratton --- layouts/partials/jumbotron.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/jumbotron.html b/layouts/partials/jumbotron.html index fa668f39..26503bb2 100644 --- a/layouts/partials/jumbotron.html +++ b/layouts/partials/jumbotron.html @@ -72,8 +72,8 @@  Podcast {{ end }} - - {{ if ge (len .Site.Pages) 1 }} + {{ $blog := (where .Site.RegularPages "Section" "==" "blog") }} + {{ if ge (len $blog) 1 }}