diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml
index 2f241561..a8a83d83 100644
--- a/config/_default/hugo.toml
+++ b/config/_default/hugo.toml
@@ -1,6 +1,5 @@
title = "Hinode"
copyright = "© 2024 "
-paginate = 9
enableGitInfo = true
# additional settings
@@ -27,6 +26,9 @@ defaultContentLanguageInSubdir = false
[taxonomies]
tag = 'tags'
+[pagination]
+ pagerSize = 9
+
[privacy]
[privacy.vimeo]
disabled = false
diff --git a/config/_default/params.toml b/config/_default/params.toml
index 1841b8e5..a6418d8a 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -300,6 +300,7 @@
hugo_imaging = "https://gohugo.io/content-management/image-processing/#imaging-configuration"
hugo_ordering = "https://gohugo.io/templates/lists/#order-content"
hugo_page_resources = "https://gohugo.io/content-management/page-resources/"
+ hugo_pagination = "https://gohugo.io/templates/pagination/#configuration"
hugo_pipes = "https://gohugo.io/hugo-pipes/introduction"
hugo_postprocess = "https://gohugo.io/hugo-pipes/postprocess"
hugo_release_v0_109_0 = "https://github.com/gohugoio/hugo/releases/tag/v0.109.0"
diff --git a/content/en/docs/latest/components/docs.md b/content/en/docs/latest/components/docs.md
index 02a025bd..18a02caa 100644
--- a/content/en/docs/latest/components/docs.md
+++ b/content/en/docs/latest/components/docs.md
@@ -45,7 +45,6 @@ Click on one the tabs to see a full example of an input file.
# toml-docs-start main
title = "Hinode"
copyright = "Copyright © 2024 Mark Dumay."
-paginate = 9
enableGitInfo = true
# toml-docs-end main
```
diff --git a/content/en/docs/latest/configuration/layout.md b/content/en/docs/latest/configuration/layout.md
index 2bbd7250..dd9ccbfc 100644
--- a/content/en/docs/latest/configuration/layout.md
+++ b/content/en/docs/latest/configuration/layout.md
@@ -1,7 +1,7 @@
---
title: Layout
description: Hinode uses a grid-based, responsive design for the home page, single pages and list pages.
-date: 2024-08-14
+date: 2024-09-04
layout: docs
---
@@ -39,7 +39,6 @@ The base layout uses the {{< link hugo_config >}}main configuration{{< /link >}}
|---------------|---------|-------------|
| title | - | Title of the website, joined with the separator and title of the current page. |
| copyright | - | Copyright notice added to the page footer. |
-| paginate | 9 | Maximum number of elements to display on a [list page](#list-pages) before pagination. |
| enableGitInfo | - | Enables git information, which is used by [documentation pages]({{% relref "content-management#documentation-layout" %}}). |
{{< /table >}}
@@ -204,7 +203,7 @@ The below configuration shows the default configuration set in `config/_default/
> [!NOTE]
> List pages support {{< link hugo_content_view >}}content view templates{{< /link >}} since release {{< release version="v0.21.0" short="true" type="link" >}}. Set the `type` in the page's frontmatter.
-List pages define one [configurable section]({{% relref "#page-sections" %}}) for the available content within the page bundle. By default, list pages display the most recent nine items as card group. If the section contains more items, a paginator is added below the card group. Adjust the setting `paginate` in the [main configuration](#configuration) as needed.
+List pages define one [configurable section]({{% relref "#page-sections" %}}) for the available content within the page bundle. By default, list pages display the most recent nine items as card group. If the section contains more items, a paginator is added below the card group. Adjust the setting `pagerSize` in the {{< link hugo_pagination >}}main configuration{{< /link >}} as needed.
### Example
diff --git a/content/en/docs/latest/content/tables.md b/content/en/docs/latest/content/tables.md
index 44e77c47..eda97ce8 100644
--- a/content/en/docs/latest/content/tables.md
+++ b/content/en/docs/latest/content/tables.md
@@ -1,12 +1,15 @@
---
title: Tables
description: Enhance out-of-the-box Markdown tables with Bootstrap styling.
-date: 2024-07-13
+date: 2024-09-04
layout: docs
modules: ["simple-datatables"]
---
-Hugo supports out-of-the box Markdown tables. Hinode enhances the basic tables with optional styling features provided by Bootstrap. The following paragraphs illustrate how to use basic tables, how to accent them, how to adjust the borders, and how to make the table more compact.
+> [!NOTE]
+> Since Hinode {{< release version="v0.26.7" short="true" type="link" >}} you no longer need to include the `.table` attribute with your Markdown table. Hinode uses a render hook to ensure the Markdown table uses Bootstrap's styling automatically. You can still use the `table` shortcode as equivalent - which also adds support for data tables.
+
+Hugo supports Markdown tables natively. Hinode enhances these tables with optional styling features provided by Bootstrap. The following paragraphs illustrate how to use basic tables, how to accent them, how to adjust the borders, and how to make the table more compact.
## Basic tables
@@ -14,28 +17,25 @@ Hugo supports tables out-of-the-box with extended Markdown. Use an optional shor
### Default alignment
-Hugo supports tables out-of-the-box by using the `|` and `-` characters. Add `{.table}` at the bottom of the block to apply the correct styling. You can mix the content with inline Markdown.
+Hugo supports tables out-of-the-box by using the `|` and `-` characters.
{{< example lang="markdown" >}}
| Italics | Bold | Code |
| --------- | -------- | ------ |
| _italics_ | **bold** | `code` |
-{.table}
{{< /example >}}
### Aligned cells and headers
-Hugo's Markdown processor applies inline styles to align cells in a table, which is blocked by Hinode's [Content Security Policy]({{% relref "server-headers" %}}). Use the `table` shortcode to wrap your Markdown input instead. You can then align header and cell data to the left, center, or right of a column using the `:` character. Pass additional class attributes between double quotes, e.g. `"table-striped"`. See the [next section](#accented-tables) for more options.
+You can align header and cell data to the left, center, or right of a column using the `:` character.
-{{< example lang="hugo" >}}
-{{* table class="table-striped" */>}}
+{{< example lang="markdown" >}}
| # | Item | Left aligned | Center aligned | Right aligned|
| -- | ----------- |:-------------|:--------------:| --------------:|
| 1. | First item | some text | more text | even more text |
| 2. | Second item | some text | more text | even more text |
| 3. | Third item | some text | more text | even more text |
-{{* /table */>}}
{{< /example >}}
@@ -53,7 +53,7 @@ Use `.table-striped` to add zebra-striping to any table row.
| 1. | First item |
| 2. | Second item |
| 3. | Third item |
-{.table .table-striped}
+{.table-striped}
{{< /example >}}
### Striped columns
@@ -66,7 +66,7 @@ Use `.table-striped-columns` to add zebra-striping to any table column.
| 1. | First item | This is the first row |
| 2. | Second item | This is the second row |
| 3. | Third item | This is the third row |
-{.table .table-striped-columns}
+{.table-striped-columns}
{{< /example >}}
### Hoverable rows
@@ -79,7 +79,7 @@ Add `.table-hover` to enable a hover state on the table rows.
| 1. | First item |
| 2. | Second item |
| 3. | Third item |
-{.table .table-hover}
+{.table-hover}
{{< /example >}}
### Colored tables
@@ -92,7 +92,7 @@ Add `table-` to apply [theme colors]({{% ref "colors" %}}) to your table.
| 1. | First item |
| 2. | Second item |
| 3. | Third item |
-{.table .table-success .table-striped}
+{.table-success .table-striped}
{{< /example>}}
## Table borders
@@ -109,7 +109,7 @@ Add `.table-bordered` for borders on all sides of the table and cells. Add an op
| 1. | First item |
| 2. | Second item |
| 3. | Third item |
-{.table .table-bordered .border-primary}
+{.table-bordered .border-primary}
{{< /example >}}
### Tables without borders
@@ -122,7 +122,7 @@ Add `.table-borderless` for a table without borders.
| 1. | First item |
| 2. | Second item |
| 3. | Third item |
-{.table .table-borderless}
+{.table-borderless}
{{< /example >}}
## Small tables
@@ -135,7 +135,7 @@ Add `.table-sm` to make any table more compact by cutting all cell padding in ha
| 1. | First item |
| 2. | Second item |
| 3. | Third item |
-{.table .table-sm}
+{.table-sm}
{{< /example >}}
## Responsive tables
diff --git a/go.mod b/go.mod
index 79d6eaa4..0e3f0493 100644
--- a/go.mod
+++ b/go.mod
@@ -4,7 +4,7 @@ go 1.20
require (
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
- github.com/gethinode/hinode v0.26.6 // indirect
+ github.com/gethinode/hinode v0.26.7 // indirect
github.com/gethinode/mod-bootstrap v1.3.1 // indirect
github.com/gethinode/mod-flexsearch/v2 v2.0.1 // indirect
github.com/gethinode/mod-fontawesome v1.10.0 // indirect
diff --git a/go.sum b/go.sum
index 25d546be..93c1576c 100644
--- a/go.sum
+++ b/go.sum
@@ -270,6 +270,8 @@ github.com/gethinode/hinode v0.26.5 h1:qt5FKuqbg2TJmRh6SkI52h5sOVaLBBkDnVYY782Nx
github.com/gethinode/hinode v0.26.5/go.mod h1:zpNIM+xzVvXtdAvJUzhwEefLiqhScWfcPtC8/7n8xYY=
github.com/gethinode/hinode v0.26.6 h1:wHSZlUH+0qH+6ifyGXHen4+QFjuYfbgKAIM44NgrONk=
github.com/gethinode/hinode v0.26.6/go.mod h1:55RIU/2XkuJiJyPE4DUV0J8Q0bTS7dcqhmQB4FARk5c=
+github.com/gethinode/hinode v0.26.7 h1:KxsuJ7n6M8DYQNasw8KOAGWUb/OsxA6SMkKDDTcvorU=
+github.com/gethinode/hinode v0.26.7/go.mod h1:YYtAJzvr7yTsc/7agiyDyMWm1QMHynqmR/+F5jfUrDQ=
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 d53d69d6..e4fffde2 100644
--- a/hugo_stats.json
+++ b/hugo_stats.json
@@ -528,9 +528,9 @@
"multi-docs-collapse-28",
"multi-docs-collapse-3",
"multi-docs-collapse-4",
- "multi-docs-collapse-45",
+ "multi-docs-collapse-46",
"multi-docs-collapse-5",
- "multi-docs-collapse-56",
+ "multi-docs-collapse-57",
"multi-docs-collapse-6",
"multi-docs-collapse-7",
"multi-docs-collapse-9",
@@ -956,9 +956,9 @@
"body-docs-collapse-28",
"body-docs-collapse-3",
"body-docs-collapse-4",
- "body-docs-collapse-45",
+ "body-docs-collapse-46",
"body-docs-collapse-5",
- "body-docs-collapse-56",
+ "body-docs-collapse-57",
"body-docs-collapse-6",
"body-docs-collapse-7",
"body-docs-collapse-9",
@@ -1233,9 +1233,9 @@
"footer-docs-collapse-28",
"footer-docs-collapse-3",
"footer-docs-collapse-4",
- "footer-docs-collapse-45",
+ "footer-docs-collapse-46",
"footer-docs-collapse-5",
- "footer-docs-collapse-56",
+ "footer-docs-collapse-57",
"footer-docs-collapse-6",
"footer-docs-collapse-7",
"footer-docs-collapse-9",
diff --git a/package-lock.json b/package-lock.json
index 7af74802..0e4c32b9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,7 +19,7 @@
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.6.0",
- "hugo-bin": "^0.130.1",
+ "hugo-bin": "^0.131.0",
"markdownlint-cli2": "^0.13.0",
"netlify-plugin-hugo-cache-resources": "^0.2.1",
"postcss-cli": "^11.0.0",
@@ -3529,9 +3529,9 @@
}
},
"node_modules/hugo-bin": {
- "version": "0.130.1",
- "resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.130.1.tgz",
- "integrity": "sha512-0+GwMlYkTdmH2INIWPeoKf+Rx/+RbTCZNPhcdPwm4a+WJeuvGjOLOmK3grAk5vC2u4OwxfOhgD3zRU7wHVYxlw==",
+ "version": "0.131.0",
+ "resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.131.0.tgz",
+ "integrity": "sha512-sxlTuNuTk9ljevKiSAux/XDHpUPb6XEsjUNou1inKtrvWpGAtnLvKXa7rHmhb/YS4Q4mYlVwK+Bo3l6Q/LyClw==",
"dev": true,
"funding": [
{
diff --git a/package.json b/package.json
index eac30193..fda07641 100644
--- a/package.json
+++ b/package.json
@@ -50,7 +50,7 @@
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.6.0",
- "hugo-bin": "^0.130.1",
+ "hugo-bin": "^0.131.0",
"markdownlint-cli2": "^0.13.0",
"netlify-plugin-hugo-cache-resources": "^0.2.1",
"postcss-cli": "^11.0.0",