File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
modules/blox-tailwind/layouts/_partials Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1010
1111{{ if not (templates.Exists (printf "_partials/views/%s.html" $view)) }}
1212 {{/* Fallback to card view */}}
13- {{ warnf "Failed to locate view at `partials /views/%s.html`. Check you specified a supported `view` in `%s`" $view $page.File.Path }}
13+ {{ warnf "Failed to locate view at `_partials /views/%s.html`. Check you specified a supported `view` in `%s`" $view $page.File.Path }}
1414 {{ $view = "card" }}
1515{{ end }}
1616
Original file line number Diff line number Diff line change 11{{/* HBX resolver: maps a section { block: "< id > ", ... } to the block partial.
22 This resolver looks up blocks from the blox/< block-id > /block.html structure,
3- which are mounted to layouts/partials /hbx/blocks/< block-id > /block.html via module.yaml.
3+ which are mounted to layouts/_partials /hbx/blocks/< block-id > /block.html via module.yaml.
44*/}}
55{{- $id := .section.block -}}
66{{- if not $id }}{{ errorf "HBX: section is missing 'block' key: %v" .section }}{{ end -}}
77
88{{- $params := .section -}}
99{{- $path := printf "hbx/blocks/%s/block.html" $id -}}
1010
11- {{- if templates.Exists (printf "partials /%s" $path) -}}
11+ {{- if templates.Exists (printf "_partials /%s" $path) -}}
1212 {{ partial $path (dict "wcPage" .ctx "wcBlock" $params "wcIdentifier" ($params.id | default (printf "section-%s" $id))) }}
1313{{- else -}}
1414 {{ errorf "HBX: block '%s' not found at %q" $id $path }}
Original file line number Diff line number Diff line change 11{{/* Load Hugo Blox - HBX resolver-based system
2- Blocks live in `blox/< block-id > /block.html` and are mounted to `layouts/partials /hbx/blocks/< block-id > /block.html`.
2+ Blocks live in `blox/< block-id > /block.html` and are mounted to `layouts/_partials /hbx/blocks/< block-id > /block.html`.
33 Landing pages must specify `sections: [{ block: '< id > ', ... }]`.
44*/}}
55{{/* Use unified sections source */}}
You can’t perform that action at this time.
0 commit comments