From 765ecf7da275ccd58bdeb0a5ef8b83fb0be98117 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 12 Nov 2025 19:48:04 +0000 Subject: [PATCH] feat: update partials path for recent Hugo breaking changes Completes previous commit 9fce47f --- .../layouts/_partials/functions/render_view.html | 2 +- modules/blox-tailwind/layouts/_partials/hbx/resolve.html | 4 ++-- modules/blox-tailwind/layouts/_partials/landing_page.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/blox-tailwind/layouts/_partials/functions/render_view.html b/modules/blox-tailwind/layouts/_partials/functions/render_view.html index 6bb4d541..1b809005 100644 --- a/modules/blox-tailwind/layouts/_partials/functions/render_view.html +++ b/modules/blox-tailwind/layouts/_partials/functions/render_view.html @@ -10,7 +10,7 @@ {{ if not (templates.Exists (printf "_partials/views/%s.html" $view)) }} {{/* Fallback to card view */}} - {{ warnf "Failed to locate view at `partials/views/%s.html`. Check you specified a supported `view` in `%s`" $view $page.File.Path }} + {{ warnf "Failed to locate view at `_partials/views/%s.html`. Check you specified a supported `view` in `%s`" $view $page.File.Path }} {{ $view = "card" }} {{ end }} diff --git a/modules/blox-tailwind/layouts/_partials/hbx/resolve.html b/modules/blox-tailwind/layouts/_partials/hbx/resolve.html index 9113b781..4c74ae82 100644 --- a/modules/blox-tailwind/layouts/_partials/hbx/resolve.html +++ b/modules/blox-tailwind/layouts/_partials/hbx/resolve.html @@ -1,6 +1,6 @@ {{/* HBX resolver: maps a section { block: "", ... } to the block partial. This resolver looks up blocks from the blox//block.html structure, - which are mounted to layouts/partials/hbx/blocks//block.html via module.yaml. + which are mounted to layouts/_partials/hbx/blocks//block.html via module.yaml. */}} {{- $id := .section.block -}} {{- if not $id }}{{ errorf "HBX: section is missing 'block' key: %v" .section }}{{ end -}} @@ -8,7 +8,7 @@ {{- $params := .section -}} {{- $path := printf "hbx/blocks/%s/block.html" $id -}} -{{- if templates.Exists (printf "partials/%s" $path) -}} +{{- if templates.Exists (printf "_partials/%s" $path) -}} {{ partial $path (dict "wcPage" .ctx "wcBlock" $params "wcIdentifier" ($params.id | default (printf "section-%s" $id))) }} {{- else -}} {{ errorf "HBX: block '%s' not found at %q" $id $path }} diff --git a/modules/blox-tailwind/layouts/_partials/landing_page.html b/modules/blox-tailwind/layouts/_partials/landing_page.html index a6adf48f..c28af7e3 100644 --- a/modules/blox-tailwind/layouts/_partials/landing_page.html +++ b/modules/blox-tailwind/layouts/_partials/landing_page.html @@ -1,5 +1,5 @@ {{/* Load Hugo Blox - HBX resolver-based system - Blocks live in `blox//block.html` and are mounted to `layouts/partials/hbx/blocks//block.html`. + Blocks live in `blox//block.html` and are mounted to `layouts/_partials/hbx/blocks//block.html`. Landing pages must specify `sections: [{ block: '', ... }]`. */}} {{/* Use unified sections source */}}