feat(hugo): add support for Hugo v0.153 breaking changes

migrate deprecated `includeFiles` to `files` glob slice (Hugo >= 0.153.0)

Replace `module.mounts.includeFiles` with the new `files` setting
introduced in Hugo v0.153.0. Update minimum Hugo version accordingly.

Affected files:
- modules/blox/hugo.yaml
- All template module.yaml configs (7 templates)

BREAKING CHANGE

See: https://gohugo.io/configuration/module/#files
This commit is contained in:
George Cushen committed 2026-02-19 14:57:09 +00:00
1 parent a3c21b401e
commit 764756ab50
8 files changed
+47 -26

No files matched your search

+5 -5
View File
@@ -103,7 +103,7 @@ params:
address_format: en-us
module:
hugoVersion:
min: '0.148.2'
min: '0.153.0'
extended: true
imports:
- path: github.com/HugoBlox/kit/modules/analytics
@@ -129,13 +129,13 @@ module:
# BLOX A) Server-rendered block templates (Go HTML)
- source: blox
target: layouts/_partials/hbx/blocks
includeFiles:
files:
- '**/block.html'
# BLOX B) Client islands (compiled with js.Build/js.Batch)
- source: blox
target: assets/js/hbx/blocks
includeFiles:
files:
- '**/*.js'
- '**/*.ts'
- '**/*.jsx'
@@ -144,7 +144,7 @@ module:
# BLOX C) Block-specific CSS
- source: blox
target: assets/css/hbx/blocks
includeFiles:
files:
- '**/*.css'
# BLOX D) Shared assets (optional)
@@ -154,7 +154,7 @@ module:
target: assets/css/hbx/shared
- source: blox
target: assets/img/hbx/blocks
includeFiles:
files:
- '**/*.png'
- '**/*.jpg'
- '**/*.jpeg'