Skip to content

Commit 963100d

Browse files
committed
docs: include navbar logo align and mode
1 parent ba2da69 commit 963100d

File tree

4 files changed

+78
-58
lines changed

4 files changed

+78
-58
lines changed

content/en/docs/latest/configuration/navigation.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,27 @@ The basic configuration of the navigation elements is set in the `navigation` se
1313

1414
<!-- markdownlint-disable MD037 MD058 -->
1515
{{< table wrap=true >}}
16-
| Setting | Default | Description |
17-
|-------------|---------|-------------|
18-
| `anchor` | - | Flag indicating to display anchor links on hovering a heading. |
19-
| `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. |
20-
| `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. |
21-
| `style` | "light" | Style of the navigation bar, either "light" or "dark". It changes the colors of the menu items accordingly. |
16+
| Setting | Default | Description |
17+
|---------------|----------|-------------|
18+
| `anchor` | - | Flag indicating to display anchor links on hovering a heading. |
19+
| `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. |
20+
| `logo-mode` | `false` | {{</* release version="v1.15.0" short="true" button-size="sm" inline="true" */>}} Flag indicating if the brand logo should support color modes. If set, the navbar searches for images having a matching color-mode suffix such as `-light` or `-dark`. |
21+
| `logo-align` | `center` | {{</* release version="v1.15.0" short="true" button-size="sm" inline="true" */>}} Alignment of the brand logo when the navbar is in collapsed mode, either `start` or `center`. |
22+
| `logo-height` | 30 | Height of the brand logo in pixels. |
23+
| `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. |
24+
| `style` | `light` | Style of the navigation bar, either "light" or "dark". It changes the colors of the menu items accordingly. |
2225
| `fixed` | false | Flag indicating to keep the navigation bar fixed at the top of the screen. |
2326
| `overlay` | false | {{</* release version="v0.23.0" short="true" button-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`. |
24-
| `overlayMode` | "dark" | {{</* release version="v0.23.0" short="true" button-size="sm" inline="true" */>}} Style of the navigation bar when `overlay` is set, either “light” or “dark”. |
27+
| `overlayMode` | `dark` | {{</* release version="v0.23.0" short="true" button-size="sm" inline="true" */>}} Style of the navigation bar when `overlay` is set, either “light” or “dark”. |
2528
| `horizontal` | false | {{</* release version="v0.21.0" short="true" button-size="sm" inline="true" */>}} Flag indicating the second level navigation should render horizontally. By default, the navbar uses regular dropdown menus instead. |
26-
| `offset` | "3em" | Applies an {{</* link bs_navbar_placement >}}offset to main elements{{< /link */>}} when `fixed` is set to true. |
27-
| `size` | "md" | Optional breakpoint of the navbar toggler, either "xs", "sm", "md" (default), "lg", or "xl". |
29+
| `offset` | `3em` | Applies an {{</* link bs_navbar_placement >}}offset to main elements{{< /link */>}} when `fixed` is set to true. |
30+
| `size` | `md` | Optional breakpoint of the navbar toggler, either "xs", "sm", "md" (default), "lg", or "xl". |
2831
| `fontsizeCollapsed` | 6 | Font size of the menu items in collapsed state. The available sizes are `[1..6]`, similar to the size of the headings `[h1..h6]`. |
2932
| `search` | true | {{</* release version="v0.18.0" short="true" release-state="deprecated" button-size="sm" inline="true" */>}} Flag indicating to include a search input. |
3033
| `breadcrumb` | false | Flag indicating to add breadcrumb navigation to the top of any single page. List pages are excluded. |
3134
| `toc` | true | Flag indicating to enable table of contents globally. Individual pages can override this setting in the frontmatter using the value `includeToc`. |
3235
| `sidebar` | true | Flag indicating to enable sidebar navigation globally. If set, a sidebar is displayed when applicable. |
33-
| `language.icon` | "fas globe" | {{</* release version="v1.12.0" short="true" button-size="sm" inline="true" */>}} Icon to use for the language selector. |
36+
| `language.icon` | `fas globe` | {{</* release version="v1.12.0" short="true" button-size="sm" inline="true" */>}} Icon to use for the language selector. |
3437
| `search.enabled` | true | {{</* release version="v1.12.0" short="true" button-size="sm" inline="true" */>}} Flag indicating to include a search input. |
3538
| `search.modal` | true | {{</* release version="v1.12.0" short="true" button-size="sm" inline="true" */>}} Flag to trigger a modal input form for search queries and results. By default, an input field is added to the navbar instead. |
3639
| `search.icon` | "fas magnifying-glass" | {{</* release version="v1.12.0" short="true" button-size="sm" inline="true" */>}} Icon to use for the modal search button. |

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.20
55
require (
66
github.com/airbnb/lottie-web v5.13.0+incompatible // indirect
77
github.com/cloudcannon/bookshop/hugo/v3 v3.16.4 // indirect
8-
github.com/gethinode/hinode v1.13.5 // indirect
8+
github.com/gethinode/hinode v1.15.1 // indirect
99
github.com/gethinode/mod-bootstrap v1.3.4 // indirect
1010
github.com/gethinode/mod-cookieyes/v2 v2.2.5 // indirect
1111
github.com/gethinode/mod-csp v1.0.8 // indirect
@@ -21,7 +21,7 @@ require (
2121
github.com/gethinode/mod-simple-datatables v1.1.7 // indirect
2222
github.com/gethinode/mod-simple-datatables/v2 v2.0.2 // indirect
2323
github.com/gethinode/mod-utils/v3 v3.3.1 // indirect
24-
github.com/gethinode/mod-utils/v4 v4.14.0 // indirect
24+
github.com/gethinode/mod-utils/v4 v4.16.1 // indirect
2525
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 // indirect
2626
github.com/twbs/bootstrap v5.3.8+incompatible // indirect
2727
)

go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@ github.com/gethinode/hinode v1.13.4 h1:7nlIfaGMyQQb6Lm7hkyfcijj61j473fvJZWdM51cU
386386
github.com/gethinode/hinode v1.13.4/go.mod h1:veZ61jDw0P36mz3qMMwCyQrOYe35Xe2aNl9WKrnKdAs=
387387
github.com/gethinode/hinode v1.13.5 h1:glL6qGBkzjvLkNg3b+xxSu3gcATcLANOBc3uxt+polY=
388388
github.com/gethinode/hinode v1.13.5/go.mod h1:veZ61jDw0P36mz3qMMwCyQrOYe35Xe2aNl9WKrnKdAs=
389+
github.com/gethinode/hinode v1.15.0 h1:5wKWQfmb1A6oQnmMT8Z18+QB2JM0OOmkgY6TS+9rAy0=
390+
github.com/gethinode/hinode v1.15.0/go.mod h1:Wpr8L0wc1JX5xkipm7CRjdY6LqWJ0IAIdq5LSXB9bP4=
391+
github.com/gethinode/hinode v1.15.1 h1:v4GIN9r6q2wXV0y2vf6N3GmrpOEITw7xMNHk9zPuWEE=
392+
github.com/gethinode/hinode v1.15.1/go.mod h1:Wpr8L0wc1JX5xkipm7CRjdY6LqWJ0IAIdq5LSXB9bP4=
389393
github.com/gethinode/mod-bootstrap v1.1.0 h1:BbalsW8kmFhv+J+dcc41TGcjIlM/p69AB0h0oGhAXIU=
390394
github.com/gethinode/mod-bootstrap v1.1.0/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
391395
github.com/gethinode/mod-bootstrap v1.1.1 h1:Tx4M5hGVOFrEaxnUONDAm6N9xuRi5UphKlT7F26HujU=
@@ -799,6 +803,8 @@ github.com/gethinode/mod-utils/v4 v4.13.0 h1:VKAA+wKy4saayXfgJuVBRfhNVWQWmxOjO8L
799803
github.com/gethinode/mod-utils/v4 v4.13.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
800804
github.com/gethinode/mod-utils/v4 v4.14.0 h1:CF5dy+HWg22L306bWVhClWK9b1NVinEqtb4Qr2vcl9A=
801805
github.com/gethinode/mod-utils/v4 v4.14.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
806+
github.com/gethinode/mod-utils/v4 v4.16.1 h1:HjV6TONU7ZbXC2xZIPRupjKOUORddtQH8bb4dnULY1U=
807+
github.com/gethinode/mod-utils/v4 v4.16.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
802808
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
803809
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
804810
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=

hugo_stats.json

Lines changed: 57 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@
300300
"fa-activity",
301301
"fa-address-card",
302302
"fa-angle-left",
303+
"fa-angle-right",
304+
"fa-angles-left",
305+
"fa-angles-right",
303306
"fa-arrow-left",
304307
"fa-arrow-right",
305308
"fa-arrows-rotate",
@@ -636,6 +639,7 @@
636639
"navbar-nav",
637640
"navbar-nav-scroll",
638641
"navbar-sm-fs",
642+
"navbar-title-center",
639643
"navbar-toggler",
640644
"next",
641645
"no-js",
@@ -844,7 +848,11 @@
844848
"w-100",
845849
"w-25",
846850
"w-50",
847-
"w-auto"
851+
"w-auto",
852+
"width-100",
853+
"width-lg-auto",
854+
"width-md-auto",
855+
"width-sm-auto"
848856
],
849857
"ids": [
850858
"16x9-ratio",
@@ -1210,11 +1218,11 @@
12101218
"dropdown-callout-1",
12111219
"dropdown-links-1",
12121220
"dropdown-nav-0",
1213-
"dropdown-panel-0287c0fdb404038f6bc8c6fcd9872956",
1214-
"dropdown-panel-1567b061c4de36c601df1ba228fa7142",
1215-
"dropdown-panel-4de093e18c20626e255a5936f21359e3",
1216-
"dropdown-panel-b0fd20e562fe034e4d83e96ecdd2631d",
1217-
"dropdown-panel-d285714f5e13e8b3de1aff135c9ab351",
1221+
"dropdown-panel-28da9bc8ed58269799ba5f7395d56a68",
1222+
"dropdown-panel-5bd2d158146084120180ffd5d37cc4ea",
1223+
"dropdown-panel-d795527e78c928304cfd5ac0082a3ef4",
1224+
"dropdown-panel-e7771e0dafd2d5a38a8788456016811a",
1225+
"dropdown-panel-f61393b9e3b120e5755d35dab32324ff",
12181226
"dropdown-pills-1",
12191227
"dropdown-tabs-1",
12201228
"dropdown-tabs-2",
@@ -1267,16 +1275,19 @@
12671275
"fab-windows",
12681276
"fab-x-twitter",
12691277
"fab-youtube",
1270-
"faq-d588388213a192f8c5fdb00e4c6db152",
1271-
"faq-d588388213a192f8c5fdb00e4c6db152-heading-faq-d588388213a192f8c5fdb00e4c6db152",
1272-
"faq-d588388213a192f8c5fdb00e4c6db152-item-0",
1273-
"faq-d588388213a192f8c5fdb00e4c6db152-item-1",
1274-
"faq-d588388213a192f8c5fdb00e4c6db152-item-2",
1278+
"faq-6a45e1a4e5065cfbd0357a45ec65d8a4",
1279+
"faq-6a45e1a4e5065cfbd0357a45ec65d8a4-heading-faq-6a45e1a4e5065cfbd0357a45ec65d8a4",
1280+
"faq-6a45e1a4e5065cfbd0357a45ec65d8a4-item-0",
1281+
"faq-6a45e1a4e5065cfbd0357a45ec65d8a4-item-1",
1282+
"faq-6a45e1a4e5065cfbd0357a45ec65d8a4-item-2",
12751283
"fas-1",
12761284
"fas-2",
12771285
"fas-3",
12781286
"fas-address-card",
12791287
"fas-angle-left",
1288+
"fas-angle-right",
1289+
"fas-angles-left",
1290+
"fas-angles-right",
12801291
"fas-arrow-left",
12811292
"fas-arrow-right",
12821293
"fas-arrows-rotate",
@@ -1532,11 +1543,11 @@
15321543
"nav-layout",
15331544
"nav-links-1",
15341545
"nav-nav-0",
1535-
"nav-panel-0287c0fdb404038f6bc8c6fcd9872956",
1536-
"nav-panel-1567b061c4de36c601df1ba228fa7142",
1537-
"nav-panel-4de093e18c20626e255a5936f21359e3",
1538-
"nav-panel-b0fd20e562fe034e4d83e96ecdd2631d",
1539-
"nav-panel-d285714f5e13e8b3de1aff135c9ab351",
1546+
"nav-panel-28da9bc8ed58269799ba5f7395d56a68",
1547+
"nav-panel-5bd2d158146084120180ffd5d37cc4ea",
1548+
"nav-panel-d795527e78c928304cfd5ac0082a3ef4",
1549+
"nav-panel-e7771e0dafd2d5a38a8788456016811a",
1550+
"nav-panel-f61393b9e3b120e5755d35dab32324ff",
15401551
"nav-pills-1",
15411552
"nav-tabs-1",
15421553
"nav-tabs-2",
@@ -1587,36 +1598,36 @@
15871598
"outlined-buttons",
15881599
"overview",
15891600
"page-sections",
1590-
"panel-0287c0fdb404038f6bc8c6fcd9872956-0",
1591-
"panel-0287c0fdb404038f6bc8c6fcd9872956-1",
1592-
"panel-0287c0fdb404038f6bc8c6fcd9872956-2",
1593-
"panel-0287c0fdb404038f6bc8c6fcd9872956-btn-0",
1594-
"panel-0287c0fdb404038f6bc8c6fcd9872956-btn-1",
1595-
"panel-0287c0fdb404038f6bc8c6fcd9872956-btn-2",
1596-
"panel-1567b061c4de36c601df1ba228fa7142-0",
1597-
"panel-1567b061c4de36c601df1ba228fa7142-1",
1598-
"panel-1567b061c4de36c601df1ba228fa7142-2",
1599-
"panel-1567b061c4de36c601df1ba228fa7142-btn-0",
1600-
"panel-1567b061c4de36c601df1ba228fa7142-btn-1",
1601-
"panel-1567b061c4de36c601df1ba228fa7142-btn-2",
1602-
"panel-4de093e18c20626e255a5936f21359e3-0",
1603-
"panel-4de093e18c20626e255a5936f21359e3-1",
1604-
"panel-4de093e18c20626e255a5936f21359e3-2",
1605-
"panel-4de093e18c20626e255a5936f21359e3-btn-0",
1606-
"panel-4de093e18c20626e255a5936f21359e3-btn-1",
1607-
"panel-4de093e18c20626e255a5936f21359e3-btn-2",
1608-
"panel-b0fd20e562fe034e4d83e96ecdd2631d-0",
1609-
"panel-b0fd20e562fe034e4d83e96ecdd2631d-1",
1610-
"panel-b0fd20e562fe034e4d83e96ecdd2631d-2",
1611-
"panel-b0fd20e562fe034e4d83e96ecdd2631d-btn-0",
1612-
"panel-b0fd20e562fe034e4d83e96ecdd2631d-btn-1",
1613-
"panel-b0fd20e562fe034e4d83e96ecdd2631d-btn-2",
1614-
"panel-d285714f5e13e8b3de1aff135c9ab351-0",
1615-
"panel-d285714f5e13e8b3de1aff135c9ab351-1",
1616-
"panel-d285714f5e13e8b3de1aff135c9ab351-2",
1617-
"panel-d285714f5e13e8b3de1aff135c9ab351-btn-0",
1618-
"panel-d285714f5e13e8b3de1aff135c9ab351-btn-1",
1619-
"panel-d285714f5e13e8b3de1aff135c9ab351-btn-2",
1601+
"panel-28da9bc8ed58269799ba5f7395d56a68-0",
1602+
"panel-28da9bc8ed58269799ba5f7395d56a68-1",
1603+
"panel-28da9bc8ed58269799ba5f7395d56a68-2",
1604+
"panel-28da9bc8ed58269799ba5f7395d56a68-btn-0",
1605+
"panel-28da9bc8ed58269799ba5f7395d56a68-btn-1",
1606+
"panel-28da9bc8ed58269799ba5f7395d56a68-btn-2",
1607+
"panel-5bd2d158146084120180ffd5d37cc4ea-0",
1608+
"panel-5bd2d158146084120180ffd5d37cc4ea-1",
1609+
"panel-5bd2d158146084120180ffd5d37cc4ea-2",
1610+
"panel-5bd2d158146084120180ffd5d37cc4ea-btn-0",
1611+
"panel-5bd2d158146084120180ffd5d37cc4ea-btn-1",
1612+
"panel-5bd2d158146084120180ffd5d37cc4ea-btn-2",
1613+
"panel-d795527e78c928304cfd5ac0082a3ef4-0",
1614+
"panel-d795527e78c928304cfd5ac0082a3ef4-1",
1615+
"panel-d795527e78c928304cfd5ac0082a3ef4-2",
1616+
"panel-d795527e78c928304cfd5ac0082a3ef4-btn-0",
1617+
"panel-d795527e78c928304cfd5ac0082a3ef4-btn-1",
1618+
"panel-d795527e78c928304cfd5ac0082a3ef4-btn-2",
1619+
"panel-e7771e0dafd2d5a38a8788456016811a-0",
1620+
"panel-e7771e0dafd2d5a38a8788456016811a-1",
1621+
"panel-e7771e0dafd2d5a38a8788456016811a-2",
1622+
"panel-e7771e0dafd2d5a38a8788456016811a-btn-0",
1623+
"panel-e7771e0dafd2d5a38a8788456016811a-btn-1",
1624+
"panel-e7771e0dafd2d5a38a8788456016811a-btn-2",
1625+
"panel-f61393b9e3b120e5755d35dab32324ff-0",
1626+
"panel-f61393b9e3b120e5755d35dab32324ff-1",
1627+
"panel-f61393b9e3b120e5755d35dab32324ff-2",
1628+
"panel-f61393b9e3b120e5755d35dab32324ff-btn-0",
1629+
"panel-f61393b9e3b120e5755d35dab32324ff-btn-1",
1630+
"panel-f61393b9e3b120e5755d35dab32324ff-btn-2",
16201631
"partials-and-shortcodes",
16211632
"pie-chart",
16221633
"pill-badges",

0 commit comments

Comments
 (0)