From 4067683a8ebf1879a013a77f250f5ef99264912b Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Wed, 25 Jun 2025 18:25:20 +0200 Subject: [PATCH 1/3] Include upgrade notes regarding inline partials --- .../docs/latest/getting-started/upgrading.md | 20 +++++++++++++++++++ hugo_stats.json | 16 +++++---------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/content/en/docs/latest/getting-started/upgrading.md b/content/en/docs/latest/getting-started/upgrading.md index b5aced52..105f2acb 100644 --- a/content/en/docs/latest/getting-started/upgrading.md +++ b/content/en/docs/latest/getting-started/upgrading.md @@ -46,3 +46,23 @@ All partials, shortcodes, and utility functions now use a standardized approach > Hinode is now fully compatible with the refreshed template system of [Hugo v0.146.0](https://github.com/gohugoio/hugo/releases/tag/v0.146.0). Although the Hugo team has made significant effort to make this template system backwards compatible, some compatibility issues are to be expected. Hinode has bumped all modules with a new major version to signal a breaking change. Pages now use a simplified template for rendering. The core templates (`baseof.html`, `list.html`, and `single.html`) have been moved to the core `layouts` folder. The templates themselves have been refactored to simplify maintenance and customization. Partials now reside in `layouts/_partials` folder. Similarly, shortcode now use the `layouts/_shortcodes` folder. Move your custom templates, partials, and shortcodes to the correct folder to ensure Hinode renders them correctly. + +Inline partials require special attention. When invoking an inline partial, the partial name should **not** include the prefix `partials` or `_partials`. For example, the `card.html` partial contains the following inline partial to render a card body: + +```go-template +{{- define "_partials/inline/card-body.html" -}} +{{/* Partial code */}} +{{- end -}} +``` + +The following code to invoke this inline partial no longer works and results in an error: + +```go-template +{{- partial "_partials/inline/card-body.html" -}} +``` + +Instead, drop the `_partials` prefix from the partial name: + +```go-template +{{- partial "inline/card-body.html" -}} +``` diff --git a/hugo_stats.json b/hugo_stats.json index 21d63212..5ab236c8 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -294,9 +294,6 @@ "fa-activity", "fa-address-card", "fa-angle-left", - "fa-angle-right", - "fa-angles-left", - "fa-angles-right", "fa-arrow-left", "fa-arrow-right", "fa-arrows-rotate", @@ -1217,19 +1214,16 @@ "fab-windows", "fab-x-twitter", "fab-youtube", - "faq-244f8edf4439905c6df0a1db2f4f490f", - "faq-244f8edf4439905c6df0a1db2f4f490f-heading-faq-244f8edf4439905c6df0a1db2f4f490f", - "faq-244f8edf4439905c6df0a1db2f4f490f-item-0", - "faq-244f8edf4439905c6df0a1db2f4f490f-item-1", - "faq-244f8edf4439905c6df0a1db2f4f490f-item-2", + "faq-ae5bc00d79e32dd6533b3ad3874b64f0", + "faq-ae5bc00d79e32dd6533b3ad3874b64f0-heading-faq-ae5bc00d79e32dd6533b3ad3874b64f0", + "faq-ae5bc00d79e32dd6533b3ad3874b64f0-item-0", + "faq-ae5bc00d79e32dd6533b3ad3874b64f0-item-1", + "faq-ae5bc00d79e32dd6533b3ad3874b64f0-item-2", "fas-1", "fas-2", "fas-3", "fas-address-card", "fas-angle-left", - "fas-angle-right", - "fas-angles-left", - "fas-angles-right", "fas-arrow-left", "fas-arrow-right", "fas-arrows-rotate", From 75ba39635e823b28302beafa66603b35a35525e1 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Wed, 25 Jun 2025 18:27:51 +0200 Subject: [PATCH 2/3] Upgrade dependencies --- go.mod | 2 +- go.sum | 2 ++ hugo_stats.json | 10 +++++----- package-lock.json | 8 ++++---- package.json | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/go.mod b/go.mod index 8008233c..d94182a7 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.20 require ( github.com/airbnb/lottie-web v5.12.2+incompatible // indirect github.com/cloudcannon/bookshop/hugo/v3 v3.16.1 // indirect - github.com/gethinode/hinode v1.0.0-beta4 // indirect + github.com/gethinode/hinode v1.0.0-beta5 // indirect github.com/gethinode/mod-bootstrap v1.3.3 // indirect github.com/gethinode/mod-cookieyes/v2 v2.2.4 // indirect github.com/gethinode/mod-csp v1.0.7 // indirect diff --git a/go.sum b/go.sum index cad46525..37aab00b 100644 --- a/go.sum +++ b/go.sum @@ -346,6 +346,8 @@ github.com/gethinode/hinode v1.0.0-beta3 h1:s9JKxbTqwDVoiI5wH47f3f8FYsmoI/6wmkzW github.com/gethinode/hinode v1.0.0-beta3/go.mod h1:WUeLk4AtS6sFEOCTsrtBhGnPY8HrsNqDUNvoDLDo2io= github.com/gethinode/hinode v1.0.0-beta4 h1:4tQSYlAzDwp3Mer0bdtEH/qxG5PTJLaH7tVeHAbBPxY= github.com/gethinode/hinode v1.0.0-beta4/go.mod h1:IHmS/CZ+6/RL0zKQkst7mlZgL2cbSRgxnyIjeC/UiqY= +github.com/gethinode/hinode v1.0.0-beta5 h1:aZy1Ejssg1EZFqeE2G8F8fb9wTQE8UYjrzVkaQL7hyI= +github.com/gethinode/hinode v1.0.0-beta5/go.mod h1:IHmS/CZ+6/RL0zKQkst7mlZgL2cbSRgxnyIjeC/UiqY= github.com/gethinode/mod-bootstrap v1.1.0 h1:BbalsW8kmFhv+J+dcc41TGcjIlM/p69AB0h0oGhAXIU= github.com/gethinode/mod-bootstrap v1.1.0/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8= github.com/gethinode/mod-bootstrap v1.1.1 h1:Tx4M5hGVOFrEaxnUONDAm6N9xuRi5UphKlT7F26HujU= diff --git a/hugo_stats.json b/hugo_stats.json index 5ab236c8..1c8d1e0c 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -1214,11 +1214,11 @@ "fab-windows", "fab-x-twitter", "fab-youtube", - "faq-ae5bc00d79e32dd6533b3ad3874b64f0", - "faq-ae5bc00d79e32dd6533b3ad3874b64f0-heading-faq-ae5bc00d79e32dd6533b3ad3874b64f0", - "faq-ae5bc00d79e32dd6533b3ad3874b64f0-item-0", - "faq-ae5bc00d79e32dd6533b3ad3874b64f0-item-1", - "faq-ae5bc00d79e32dd6533b3ad3874b64f0-item-2", + "faq-0f03887a7de9bec63e7f9387f89bea75", + "faq-0f03887a7de9bec63e7f9387f89bea75-heading-faq-0f03887a7de9bec63e7f9387f89bea75", + "faq-0f03887a7de9bec63e7f9387f89bea75-item-0", + "faq-0f03887a7de9bec63e7f9387f89bea75-item-1", + "faq-0f03887a7de9bec63e7f9387f89bea75-item-2", "fas-1", "fas-2", "fas-3", diff --git a/package-lock.json b/package-lock.json index 3efff26a..f4b617a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "cssnano": "^7.0.7", "cssnano-preset-advanced": "^7.0.7", "eslint": "^9.29.0", - "hugo-bin": "^0.144.8", + "hugo-bin": "^0.144.9", "markdownlint-cli2": "^0.18.1", "neostandard": "^0.12.1", "netlify-plugin-hugo-cache-resources": "^0.2.1", @@ -4430,9 +4430,9 @@ } }, "node_modules/hugo-bin": { - "version": "0.144.8", - "resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.144.8.tgz", - "integrity": "sha512-ZqXy5cvfMJ1FSGrO62rp9koEZ+bXHcw1gPKV5LJDveYKMEFmnBy4TW8KWD0joPyHKD1xKRpVnOL13/AQx8NxlA==", + "version": "0.144.9", + "resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.144.9.tgz", + "integrity": "sha512-SsAgkkXTl0Mwzgf5HYiE8gmWwfAkCCs7KFcVt0uZjmPI+Xflr3q9maxEDcNmTxSp/NMLSnPhqcGZwlHzh5oXMw==", "dev": true, "funding": [ { diff --git a/package.json b/package.json index 1368fe55..e3cfdc67 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "cssnano": "^7.0.7", "cssnano-preset-advanced": "^7.0.7", "eslint": "^9.29.0", - "hugo-bin": "^0.144.8", + "hugo-bin": "^0.144.9", "markdownlint-cli2": "^0.18.1", "neostandard": "^0.12.1", "netlify-plugin-hugo-cache-resources": "^0.2.1", From aebfe841ec69af4be7e3f3d7ae2310a0fd876f7e Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Wed, 25 Jun 2025 18:49:37 +0200 Subject: [PATCH 3/3] Fix local page link --- content/en/docs/latest/getting-started/upgrading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/latest/getting-started/upgrading.md b/content/en/docs/latest/getting-started/upgrading.md index 105f2acb..8bbdcede 100644 --- a/content/en/docs/latest/getting-started/upgrading.md +++ b/content/en/docs/latest/getting-started/upgrading.md @@ -34,7 +34,7 @@ Hinode now supports reusable page elements called content blocks, such as a hero class: border-0 card-zoom card-body-margin ``` -You will have to manually replace any obsolete page section with either an [articles content block](/docs/content-blocks/articles/) (when referring to a site section) or a [cards content block](http://localhost:1313/docs/content-blocks/cards/) (when using direct input). +You will have to manually replace any obsolete page section with either an [articles content block](/docs/content-blocks/articles/) (when referring to a site section) or a [cards content block](/docs/content-blocks/cards/) (when using direct input). ## Structured Arguments