mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 22:15:11 +00:00
BREAKING CHANGE Module paths moved to `github.com/HugoBlox/kit` with new names: - core `blox-tailwind` → `blox` - analytics → `analytics` - netlify → `integrations/netlify` - slides (reveal) → `slides` Update go.mod, module.yaml/params, scripts, tests, and v0.11 migration guide accordingly.
14 lines
633 B
HTML
14 lines
633 B
HTML
{{/* Load Hugo Blox - HBX resolver-based system
|
|
Blocks live in `blox/<block-id>/block.html` and are mounted to `layouts/_partials/hbx/blocks/<block-id>/block.html`.
|
|
Landing pages must specify `sections: [{ block: '<id>', ... }]`.
|
|
*/}}
|
|
{{/* Use unified sections source */}}
|
|
{{- $sections := partial "hbx/sections.html" . -}}
|
|
|
|
{{ range $index, $block := $sections }}
|
|
{{/* Do not show sections intended only for the demo site. */}}
|
|
{{ if or (not $block.demo) ($block.demo | and (eq (os.Getenv "HUGO_BLOX_DEMO") "true")) }}
|
|
{{ partial "functions/parse_block_v3" (dict "page" $ "block" $block) }}
|
|
{{ end }}
|
|
{{ end }}
|