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
13 changes: 13 additions & 0 deletions assets/scss/theme/_sidebar.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$theme-border-radius: 1rem;

.sidebar-item {
--bs-border-radius: #{$theme-border-radius};
--bs-border-radius-sm: #{$theme-border-radius};
--bs-border-radius-lg: #{$theme-border-radius};
--bs-border-radius-xl: #{$theme-border-radius};
--bs-border-radius-xxl: #{$theme-border-radius};
}

.sidebar-item-group {
border-radius: #{$theme-border-radius};
}
2 changes: 2 additions & 0 deletions assets/scss/theme/theme.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "sidebar";

.gradient-featured {
background: $white;
background: linear-gradient(135deg, $white 0%, tint-color($primary, 80%) 100%);
Expand Down
1 change: 0 additions & 1 deletion content/en/docs/latest/components/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ title: Components
description: Use powerful shortcodes to add interactive elements with ease.
nested: false
aliases:
- "/docs/components/"
- "/components/"
---
11 changes: 10 additions & 1 deletion 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: 2024-08-14
date: 2025-01-10
layout: docs
---

Expand Down Expand Up @@ -109,6 +109,15 @@ Menu items can be nested within each other. The below example defines three cont

You can define separate data files for each available language in a multilingual site. Add the language code as suffix to your data file. For example, `data/blog.en.yml` defines the sidebar menu of the English translation of the blog section. Hinodes uses `data/blog.yml` as fallback (or any other {{< link hugo_data_sources >}}data format supported by Hugo{{< /link >}}).

Since {{< release version="v0.27.27" short="true" type="link" >}}, Hinode renders a link for group items when a matching list page is found. You can suppress this behavior for a group item by setting its link value to `"#"` (the value is double-quoted to ensure the value is not interpreted as a YAML comment). For example, the Hinode docs includes a group item `Components`. The link `/docs/components/` redirects to a list page that shows all available Hinode components. This list page breaks out from the sidebar navigation layout. To avoid navgigating to this page, the Hinode docs suppresses this link. Instead, the group item is expanded or collapsed, pending current state.

```yml
- title: Components
link: "#"
pages:
- title: Abbr
```

### Versioning

{{< release version="v0.15.0" >}}
Expand Down
1 change: 1 addition & 0 deletions data/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
# - title: Validation

- title: Components
link: "#"
pages:
- title: Abbr
- title: Accordion
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ go 1.20

require (
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
github.com/gethinode/hinode v0.27.24 // indirect
github.com/gethinode/hinode v0.27.27 // indirect
github.com/gethinode/mod-bootstrap v1.3.2 // indirect
github.com/gethinode/mod-cookieyes/v2 v2.2.4 // indirect
github.com/gethinode/mod-csp v1.0.7 // indirect
github.com/gethinode/mod-flexsearch/v2 v2.0.3 // indirect
github.com/gethinode/mod-fontawesome v1.10.1 // indirect
github.com/gethinode/mod-google-analytics v1.1.9 // indirect
github.com/gethinode/mod-google-analytics v1.3.1 // indirect
github.com/gethinode/mod-katex v1.1.3 // indirect
github.com/gethinode/mod-leaflet v1.2.1 // indirect
github.com/gethinode/mod-lottie v1.5.13 // indirect
github.com/gethinode/mod-simple-datatables v1.1.6 // indirect
github.com/gethinode/mod-utils/v2 v2.8.5 // indirect
github.com/gethinode/mod-utils/v2 v2.8.6 // indirect
github.com/nextapps-de/flexsearch v0.0.0-20240501124520-961c3ae84a87 // indirect
github.com/twbs/bootstrap v5.3.3+incompatible // indirect
)
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ github.com/gethinode/hinode v0.27.19 h1:M+pxKLE5LHgyarc1kT0moMx49JIRBQ6ctdmiTUd3
github.com/gethinode/hinode v0.27.19/go.mod h1:k+TUNPNBbNY2kNlzDySw3k/GuDHetfKN/qTXKHwlbk0=
github.com/gethinode/hinode v0.27.24 h1:zygsjNLR1D1yiyX6hqfUuMJ6GDAQJMxP2rzJr1eKhRA=
github.com/gethinode/hinode v0.27.24/go.mod h1:1s9OpcLdI2uz3A+NZeaRHAdS8usCjPXLNNeNsnrtrb0=
github.com/gethinode/hinode v0.27.27 h1:05bBO+MIEoB4PWv1Xm1+xnmwLJ3WKxqz/+AkgRLrYb8=
github.com/gethinode/hinode v0.27.27/go.mod h1:3dUk4HAyMEHjuu01TOzUTfTk3fezSqE9oQ8tpSuTGQQ=
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 @@ -454,6 +456,8 @@ github.com/gethinode/mod-google-analytics v1.1.6 h1:0eNIM4NTzXnnRHMM04IVnYPPGwbM
github.com/gethinode/mod-google-analytics v1.1.6/go.mod h1:dl628cFozpCvoIMCiV7ujzQipjxcm3eatXrSfLPWNII=
github.com/gethinode/mod-google-analytics v1.1.9 h1:ld3bRGiJiUCfe/deH+4vOP3oZNhG6mPssT254EcK0Ro=
github.com/gethinode/mod-google-analytics v1.1.9/go.mod h1:dl628cFozpCvoIMCiV7ujzQipjxcm3eatXrSfLPWNII=
github.com/gethinode/mod-google-analytics v1.3.1 h1:WPXrsO6Kpp0k8PYY9a1JyiZgYGMlkBfHY8eEg6CfcL0=
github.com/gethinode/mod-google-analytics v1.3.1/go.mod h1:dl628cFozpCvoIMCiV7ujzQipjxcm3eatXrSfLPWNII=
github.com/gethinode/mod-katex v1.0.2 h1:pIG4n3qLl/IVe7BEiwn+GL8r5lOCtF6FDxlcrPKdAXk=
github.com/gethinode/mod-katex v1.0.2/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
github.com/gethinode/mod-katex v1.0.3 h1:fvlUWqcUQqv2zRNM2kfmJ6GhXA816Tl1nfVrUkmBStI=
Expand Down Expand Up @@ -628,6 +632,8 @@ github.com/gethinode/mod-utils/v2 v2.8.4 h1:ZBkIxFezFz2IrbTt0Y3Nq5ac7klU5N8TY19Q
github.com/gethinode/mod-utils/v2 v2.8.4/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
github.com/gethinode/mod-utils/v2 v2.8.5 h1:e71ncO2NYpum7JTdNTwb0lw8aDe8Zc64Ehjavy8x9xM=
github.com/gethinode/mod-utils/v2 v2.8.5/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
github.com/gethinode/mod-utils/v2 v2.8.6 h1:gtTtL37YPq1n/POIzbj40aYOg1VaZq8IjqwSf2V5yo0=
github.com/gethinode/mod-utils/v2 v2.8.6/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
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
10 changes: 6 additions & 4 deletions hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"btn-sm",
"btn-social",
"btn-success",
"btn-toggle",
"btn-toggle-group",
"btn-toggle-nav",
"btn-warning",
"card",
Expand Down Expand Up @@ -243,6 +243,7 @@
"d-none-dark",
"d-none-light",
"d-sm-block",
"d-sm-none",
"data-table",
"disabled",
"display-1",
Expand Down Expand Up @@ -529,7 +530,7 @@
"multi-docs-collapse-27",
"multi-docs-collapse-28",
"multi-docs-collapse-3",
"multi-docs-collapse-30",
"multi-docs-collapse-31",
"multi-docs-collapse-35",
"multi-docs-collapse-4",
"multi-docs-collapse-45",
Expand Down Expand Up @@ -668,6 +669,7 @@
"show",
"sidebar",
"sidebar-item",
"sidebar-item-group",
"sidebar-overflow",
"slide",
"small",
Expand Down Expand Up @@ -984,7 +986,7 @@
"body-docs-collapse-27",
"body-docs-collapse-28",
"body-docs-collapse-3",
"body-docs-collapse-30",
"body-docs-collapse-31",
"body-docs-collapse-35",
"body-docs-collapse-4",
"body-docs-collapse-45",
Expand Down Expand Up @@ -1277,7 +1279,7 @@
"footer-docs-collapse-27",
"footer-docs-collapse-28",
"footer-docs-collapse-3",
"footer-docs-collapse-30",
"footer-docs-collapse-31",
"footer-docs-collapse-35",
"footer-docs-collapse-4",
"footer-docs-collapse-45",
Expand Down
Loading