Skip to content

Commit

Permalink
feat: ignore demo sections
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed Oct 16, 2023
1 parent 548c91b commit 8a0135d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ <h3>
<ul class="ul-interests fa-ul mb-0">
{{ range . }}
<li>
<i class="fa-li fa-solid fa-book"></i>
<i class="fa-li fa-solid fa-book-open"></i>
{{ . | markdownify | emojify }}
</li>
{{ end }}
Expand Down
5 changes: 4 additions & 1 deletion modules/wowchemy/layouts/partials/landing_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

{{/* Load Wowchemy blocks */}}
{{ range $index, $block := .Params.sections }}
{{ partial "functions/parse_block_v2" (dict "page" $ "block" $block) }}
{{/* Do not show sections intended only for the demo site. */}}
{{ 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 }}

0 comments on commit 8a0135d

Please sign in to comment.