mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 22:14:08 +00:00
feat: ignore demo sections
This commit is contained in:
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 }}
|
||||
Reference in new issue
Block a user