Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion content/en/docs/latest/getting-started/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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" -}}
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
16 changes: 5 additions & 11 deletions hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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-0f03887a7de9bec63e7f9387f89bea75",
"faq-0f03887a7de9bec63e7f9387f89bea75-heading-faq-0f03887a7de9bec63e7f9387f89bea75",
"faq-0f03887a7de9bec63e7f9387f89bea75-item-0",
"faq-0f03887a7de9bec63e7f9387f89bea75-item-1",
"faq-0f03887a7de9bec63e7f9387f89bea75-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",
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down