From b343bdd4a0a3ce50266d0f5d19244b3dc1024e8a Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 16 Oct 2023 01:20:24 +0100 Subject: [PATCH] feat: ignore demo sections --- modules/wowchemy/layouts/partials/landing_page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wowchemy/layouts/partials/landing_page.html b/modules/wowchemy/layouts/partials/landing_page.html index 2af2ceb2..5289970b 100644 --- a/modules/wowchemy/layouts/partials/landing_page.html +++ b/modules/wowchemy/layouts/partials/landing_page.html @@ -5,7 +5,7 @@ {{/* Load Wowchemy blocks */}} {{ range $index, $block := .Params.sections }} {{/* Do not show sections intended only for the demo site. */}} - {{ if or (not $block.demo) ($block.demo | and (eq (os.Getenv "WC_DEMO") true)) }} + {{ if or (not $block.demo) ($block.demo | and (eq (os.Getenv "WC_DEMO") "true")) }} {{ partial "functions/parse_block_v2" (dict "page" $ "block" $block) }} {{ end }} {{ end }}