Skip to content

Commit 765ecf7

Browse files
committed
feat: update partials path for recent Hugo breaking changes
Completes previous commit 9fce47f
1 parent 9fce47f commit 765ecf7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/blox-tailwind/layouts/_partials/functions/render_view.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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

modules/blox-tailwind/layouts/_partials/hbx/resolve.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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 }}

modules/blox-tailwind/layouts/_partials/landing_page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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 */}}

0 commit comments

Comments
 (0)