From 764756ab501c3a5e2f4ba16193d55b3fdae378fb Mon Sep 17 00:00:00 2001 From: George Cushen Date: Thu, 19 Feb 2026 14:57:09 +0000 Subject: [PATCH] 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 --- modules/blox/hugo.yaml | 10 +++++----- templates/academic-cv/config/_default/module.yaml | 9 ++++++--- .../data-science-blog/config/_default/module.yaml | 9 ++++++--- templates/dev-portfolio/config/_default/module.yaml | 9 ++++++--- templates/documentation/config/_default/module.yaml | 9 ++++++--- templates/link-in-bio/config/_default/module.yaml | 9 ++++++--- templates/resume/config/_default/module.yaml | 9 ++++++--- .../startup-landing-page/config/_default/module.yaml | 9 ++++++--- 8 files changed, 47 insertions(+), 26 deletions(-) diff --git a/modules/blox/hugo.yaml b/modules/blox/hugo.yaml index 7d532b10..4e3d15de 100644 --- a/modules/blox/hugo.yaml +++ b/modules/blox/hugo.yaml @@ -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' diff --git a/templates/academic-cv/config/_default/module.yaml b/templates/academic-cv/config/_default/module.yaml index 4101cd91..964b07dc 100644 --- a/templates/academic-cv/config/_default/module.yaml +++ b/templates/academic-cv/config/_default/module.yaml @@ -13,13 +13,16 @@ imports: mounts: - source: hugo-blox/blox/community target: layouts/_partials/blox/community/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox/all-access target: layouts/_partials/blox/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox target: assets/dist/community/blox/ - includeFiles: '**.css' + files: + - '**.css' - source: layouts target: layouts - source: assets diff --git a/templates/data-science-blog/config/_default/module.yaml b/templates/data-science-blog/config/_default/module.yaml index 363ed9e7..d404ab89 100644 --- a/templates/data-science-blog/config/_default/module.yaml +++ b/templates/data-science-blog/config/_default/module.yaml @@ -12,13 +12,16 @@ imports: mounts: - source: hugo-blox/blox/community target: layouts/_partials/blox/community/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox/all-access target: layouts/_partials/blox/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox target: assets/dist/community/blox/ - includeFiles: '**.css' + files: + - '**.css' - source: layouts target: layouts - source: assets diff --git a/templates/dev-portfolio/config/_default/module.yaml b/templates/dev-portfolio/config/_default/module.yaml index 4101cd91..964b07dc 100644 --- a/templates/dev-portfolio/config/_default/module.yaml +++ b/templates/dev-portfolio/config/_default/module.yaml @@ -13,13 +13,16 @@ imports: mounts: - source: hugo-blox/blox/community target: layouts/_partials/blox/community/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox/all-access target: layouts/_partials/blox/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox target: assets/dist/community/blox/ - includeFiles: '**.css' + files: + - '**.css' - source: layouts target: layouts - source: assets diff --git a/templates/documentation/config/_default/module.yaml b/templates/documentation/config/_default/module.yaml index 363ed9e7..d404ab89 100644 --- a/templates/documentation/config/_default/module.yaml +++ b/templates/documentation/config/_default/module.yaml @@ -12,13 +12,16 @@ imports: mounts: - source: hugo-blox/blox/community target: layouts/_partials/blox/community/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox/all-access target: layouts/_partials/blox/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox target: assets/dist/community/blox/ - includeFiles: '**.css' + files: + - '**.css' - source: layouts target: layouts - source: assets diff --git a/templates/link-in-bio/config/_default/module.yaml b/templates/link-in-bio/config/_default/module.yaml index 363ed9e7..d404ab89 100644 --- a/templates/link-in-bio/config/_default/module.yaml +++ b/templates/link-in-bio/config/_default/module.yaml @@ -12,13 +12,16 @@ imports: mounts: - source: hugo-blox/blox/community target: layouts/_partials/blox/community/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox/all-access target: layouts/_partials/blox/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox target: assets/dist/community/blox/ - includeFiles: '**.css' + files: + - '**.css' - source: layouts target: layouts - source: assets diff --git a/templates/resume/config/_default/module.yaml b/templates/resume/config/_default/module.yaml index 363ed9e7..d404ab89 100644 --- a/templates/resume/config/_default/module.yaml +++ b/templates/resume/config/_default/module.yaml @@ -12,13 +12,16 @@ imports: mounts: - source: hugo-blox/blox/community target: layouts/_partials/blox/community/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox/all-access target: layouts/_partials/blox/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox target: assets/dist/community/blox/ - includeFiles: '**.css' + files: + - '**.css' - source: layouts target: layouts - source: assets diff --git a/templates/startup-landing-page/config/_default/module.yaml b/templates/startup-landing-page/config/_default/module.yaml index 363ed9e7..d404ab89 100644 --- a/templates/startup-landing-page/config/_default/module.yaml +++ b/templates/startup-landing-page/config/_default/module.yaml @@ -12,13 +12,16 @@ imports: mounts: - source: hugo-blox/blox/community target: layouts/_partials/blox/community/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox/all-access target: layouts/_partials/blox/ - includeFiles: '**.html' + files: + - '**.html' - source: hugo-blox/blox target: assets/dist/community/blox/ - includeFiles: '**.css' + files: + - '**.css' - source: layouts target: layouts - source: assets