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
4 changes: 3 additions & 1 deletion config/_default/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
title = "Hinode"
copyright = "© 2024 <a href='https://github.com/gethinode' class='link-bg-footer' target='_blank' rel='noopener noreferrer'>Hinode Team</a>"
paginate = 9
enableGitInfo = true

# additional settings
Expand All @@ -27,6 +26,9 @@ defaultContentLanguageInSubdir = false
[taxonomies]
tag = 'tags'

[pagination]
pagerSize = 9

[privacy]
[privacy.vimeo]
disabled = false
Expand Down
1 change: 1 addition & 0 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion content/en/docs/latest/components/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
5 changes: 2 additions & 3 deletions content/en/docs/latest/configuration/layout.md
Original file line number Diff line number Diff line change
@@ -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
---

Expand Down Expand Up @@ -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 >}}

Expand Down Expand Up @@ -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

Expand Down
30 changes: 15 additions & 15 deletions content/en/docs/latest/content/tables.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
---
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

Hugo supports tables out-of-the-box with extended Markdown. Use an optional shortcode as wrapper to align the table cells.

### 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.

<!-- markdownlint-disable MD037 -->
{{< 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 >}}
<!-- markdownlint-enable MD037 -->

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -92,7 +92,7 @@ Add `table-<theme>` 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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
12 changes: 6 additions & 6 deletions hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
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 @@ -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",
Expand Down