Skip to content

Conversation

@ho-han-sheng
Copy link

@ho-han-sheng ho-han-sheng commented Jul 3, 2025

From the error blob below, hugo tries to retrieve downloaded blox from the layouts/partials/blocks/ directory. However, blox are only mounted on layouts/partials/blox/community/ and assets/dist/community/blox/.

ERROR %!s() uses a github.ho-han-sheng.collage block but the github.ho-han-sheng.collage block was not found at layouts/partials/blocks/github.ho-han-sheng.collage.html
Error: error building site: render: failed to render pages: render of "home" failed: "C:\Users\hsho\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com!hugo!blox\hugo-blox-builder\modules\blox-bootstrap\v5@v5.9.7\layouts\landing\list.html:2:5": execute of template failed: template: landing/list.html:2:5: executing "main" at <partial "landing_page.html" .>: error calling partial: "C:\Users\hsho\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com!hugo!blox\hugo-blox-builder\modules\blox-bootstrap\v5@v5.9.7\layouts\partials\landing_page.html:9:7": execute of template failed: template: partials/landing_page.html:9:7: executing "partials/landing_page.html" at <partial "functions/parse_block_v2" (dict "page" $ "block" $block)>: error calling partial: "C:\Users\hsho\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com!hugo!blox\hugo-blox-builder\modules\blox-bootstrap\v5@v5.9.7\layouts\part: partial "blocks/github.ho-han-sheng.collage.html" not found

This pull request is to add an additional mount directory for layouts/partials/blocks/ so that custom blox can be retrieved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant