feat: ignore demo sections

This commit is contained in:
George Cushen committed 2023-10-16 01:20:24 +01:00
1 parent 8a0135da27
commit b343bdd4a0
1 file changed
+1 -1
@@ -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 }}