Thanks to visit codestin.com
Credit goes to github.com

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
8 changes: 7 additions & 1 deletion content/en/docs/latest/configuration/languages.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Languages
description: Configure multiple languages to enable multilingual sites.
date: 2023-08-04
date: 2024-01-24
layout: docs
---

Expand All @@ -11,6 +11,12 @@ Hinode supports Hugo's {{< link hugo_lang >}}multilingual mode{{< /link >}} to c

## Language configuration

<!-- markdownlint-disable MD037 -->
{{< alert type="danger" >}}
By default, Hinode removes special characters from page descriptions to improve readability. Your language may include specific diacritics or other characters that should not be removed. Refine the {{</* link "modules#configuring-modules" >}}module configuration{{< /link */>}} to adjust or bypass the default character filter.
{{< /alert >}}
<!-- markdownlint-enable MD037 -->

Define the languages available to your site in the main site configuration. The below configuration shows the default configuration set in `config/_default/languages.toml` for the English language.

{{< docs name="lang-main" file="config/_default/languages.toml" >}}
Expand Down
3 changes: 2 additions & 1 deletion content/en/docs/latest/configuration/modules.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Modules
description: Customize and extend Hinode with Hugo modules.
date: 2024-01-23
date: 2024-01-24
layout: docs
---

Expand Down Expand Up @@ -70,6 +70,7 @@ The `utils` module supports the following additional settings:
| Setting | Default | Description |
|-------------------------|---------|-------------|
| utils.filter | `[^0-9A-Za-zŽžÀ-ÿ ;.,\/'’"]` | Defines the regular expression for characters to remove from page descriptions. These page descriptions are used to define card content and metadata for search indexes. Adjust the filter to define which characters to support. You may need to adjust these settings to support specific diacritical letters. |
| utils.raw | false | Flag to indicate page descriptions should be returned as-is. In this setting, the filter is ignored. |
{{< /table >}}

Hinode uses the following module configuration by default:
Expand Down
30 changes: 16 additions & 14 deletions content/en/docs/latest/configuration/navigation.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Navigation
description: Help the user navigate your website using configurable navigation elements.
date: 2023-11-05
date: 2024-01-24
layout: docs
---

Expand All @@ -13,20 +13,22 @@ The basic configuration of the navigation elements is set in the `navigation` se

<!-- markdownlint-disable MD037 -->
{{< table >}}
| Setting | Default | Description |
|------------|---------|-------------|
| anchor | - | Flag indicating to display anchor links on hovering a heading. |
| logo | - | Address of the brand logo image, e.g. "/img/logo_embedded.svg". The vector image file is expected to be present in your local `static/img` folder. |
| color | - | [Theme color]({{< ref "colors" >}}) of the navigation bar. Set the style to set the correct contrast of the menu items. The navigation bar is transparent when no color is set, but is set to the body color when scrolling to enhance the contrast. |
| style | "light" | Style of the navigation bar, either "light" or "dark". It changes the colors of the menu items accordingly. |
| fixed | false | Flag indicating to keep the navigation bar fixed at the top of the screen. |
| Setting | Default | Description |
|-------------|---------|-------------|
| anchor | - | Flag indicating to display anchor links on hovering a heading. |
| logo | - | Address of the brand logo image, e.g. "/img/logo_embedded.svg". The vector image file is expected to be present in your local `static/img` folder. |
| color | - | [Theme color]({{< ref "colors" >}}) of the navigation bar. Set the style to set the correct contrast of the menu items. The navigation bar is transparent when no color is set, but is set to the body color when scrolling to enhance the contrast. |
| style | "light" | Style of the navigation bar, either "light" or "dark". It changes the colors of the menu items accordingly. |
| fixed | false | Flag indicating to keep the navigation bar fixed at the top of the screen. |
| overlay | false | {{</* release version="v0.23.0-alpha" short="true" size="sm" inline="true" */>}} Flag indicating to render the navigation bar as overlay on top of the page body. In this state, the navigation is transparent and the page body starts at the top of the viewport. The navigation becomes opaque when scrolling and is set to the specified theme `color`. |
| overlayMode | "dark" | {{</* release version="v0.23.0-alpha" short="true" size="sm" inline="true" */>}} Style of the navigation bar when `overlay` is set, either “light” or “dark”. |
| horizontal | false | {{</* release version="v0.21.0" short="true" size="sm" inline="true" */>}} Flag indicating the second level navigation should render horizontally. By default, the navbar uses regular dropdown menus instead. |
| offset | "3em" | Applies an {{</* link bs_navbar_placement >}}offset to main elements{{< /link */>}} when `fixed` is set to true. |
| size | "md" | Optional breakpoint of the navbar toggler, either "xs", "sm", "md" (default), "lg", or "xl". |
| search | true | Flag indicating to include a search input. |
| breadcrumb | false | Flag indicating to add breadcrumb navigation to the top of any single page. List pages are excluded. |
| toc | true | Flag indicating to enable table of contents globally. Individual pages can override this setting in the frontmatter using the value `includeToc`. |
| sidebar | true | Flag indicating to enable sidebar navigation globally. If set, a sidebar is displayed when applicable. |
| offset | "3em" | Applies an {{</* link bs_navbar_placement >}}offset to main elements{{< /link */>}} when `fixed` is set to true. |
| size | "md" | Optional breakpoint of the navbar toggler, either "xs", "sm", "md" (default), "lg", or "xl". |
| search | true | Flag indicating to include a search input. |
| breadcrumb | false | Flag indicating to add breadcrumb navigation to the top of any single page. List pages are excluded. |
| toc | true | Flag indicating to enable table of contents globally. Individual pages can override this setting in the frontmatter using the value `includeToc`. |
| sidebar | true | Flag indicating to enable sidebar navigation globally. If set, a sidebar is displayed when applicable. |
{{< /table >}}
<!-- markdownlint-enable MD037 -->

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ go 1.20

require (
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
github.com/gethinode/hinode v0.22.5 // indirect
github.com/gethinode/hinode v0.23.0-alpha // indirect
github.com/gethinode/mod-bootstrap v1.2.2 // indirect
github.com/gethinode/mod-flexsearch v1.8.1 // indirect
github.com/gethinode/mod-fontawesome v1.8.0 // indirect
github.com/gethinode/mod-katex v1.0.5 // indirect
github.com/gethinode/mod-leaflet v0.4.0 // indirect
github.com/gethinode/mod-lottie v1.4.1 // indirect
github.com/gethinode/mod-utils v1.0.2 // indirect
github.com/gethinode/mod-utils v1.0.3 // indirect
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 // indirect
github.com/twbs/bootstrap v5.3.2+incompatible // indirect
)
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ github.com/gethinode/hinode v0.22.4 h1:Kkjl5jUOhmsCHnfTK8YpXif4jjL5sWGK12VV0C5tg
github.com/gethinode/hinode v0.22.4/go.mod h1:fQ8tAaqw06mfTBaSyh0F+A3SFA0RoN5U024aR2fGDhQ=
github.com/gethinode/hinode v0.22.5 h1:zpjSDgWQVbq4BjPduxwexQB18gawFeinzPkaRRTs2Tg=
github.com/gethinode/hinode v0.22.5/go.mod h1:hsskrlBRnTbpCjrDtGbK8C1VYGML7ezHtCDGDiYL2mQ=
github.com/gethinode/hinode v0.23.0-alpha h1:izSqSgWMAqKZsA4RFox02dj4EDN1zPkdoUEAOWRdEXY=
github.com/gethinode/hinode v0.23.0-alpha/go.mod h1:26J/a8nmo18iXkpjhN5Zr9ofUddrFeHqBPIEZt9AdJE=
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 Expand Up @@ -244,6 +246,8 @@ github.com/gethinode/mod-utils v1.0.1 h1:jhZGlGFHHL1f5HXbBMXfiZ2gCz4TVafAzjnRPTI
github.com/gethinode/mod-utils v1.0.1/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE=
github.com/gethinode/mod-utils v1.0.2 h1:0b3i+/bBHY1Td9N6khDbL1nf3d5HGc4QzI4BbEWHoU4=
github.com/gethinode/mod-utils v1.0.2/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE=
github.com/gethinode/mod-utils v1.0.3 h1:FF6lnam0Bcdj7G1E5P+qi5ByPrl1npL+3uS5YoPx1C0=
github.com/gethinode/mod-utils v1.0.3/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE=
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
Expand Down