Skip to content

Commit

Permalink
Merge pull request #41 from gethinode/develop
Browse files Browse the repository at this point in the history
Navbar
  • Loading branch information
markdumay authored Apr 9, 2023
2 parents 29ecf65 + b6100c0 commit 39eb88b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion content/en/docs/0.9/components/navbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The shortcode supports the following arguments:
| menus | No | Optional name of the menu configuration, defaults to "main". |
| size | No | Optional breakpoint of the navbar toggler, either "xs", "sm", "md" (default), "lg", or "xl". |
| color | No | Optional background color of the navbar, either "primary", "secondary", "success", "danger", "warning", "info", "light", "dark", "white", "black" or "body". Set the color to "body" for the navbar to respond to [color mode]({{< param "links.bs_color" >}}) changes (e.g. switching between dark and light). The navigation bar is transparent when no color is set, but is set to the body color when scrolling to enhance the contrast. |
| mode | No | Optional flag to include a color mode switcher, default is "true" (if [dark mode]({{< relref "layout#extended-configuration">}}) is enabled). |
| search | No | Optional flag to include a search input, defaults to the parameter "logo" set in the "navigation" section of the site's parameter configuration. |
| logo | No | Optional address of the logo image, defaults to the parameter "logo" set in the "navigation" section of the site's parameter configuration. |
| title | No | Optional brand title, displayed when the logo is not set. Defaults to the site's title. |
Expand All @@ -33,6 +34,6 @@ As an example, the following shortcode displays a navigation header with a body

<!-- markdownlint-disable MD037 -->
{{< example lang="hugo" >}}
{{</* navbar path="credits" color="body" size="sm" search="false" menus="sample" title="Brand" */>}}
{{</* navbar path="credits" color="body" size="md" search="false" menus="sample" title="Brand" */>}}
{{< /example >}}
<!-- markdownlint-enable MD037 -->
2 changes: 2 additions & 0 deletions hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@
"d-none",
"d-none-dark",
"d-none-light",
"d-sm-block",
"d-sm-none",
"display-1",
"display-2",
"display-3",
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gethinode/docs",
"version": "0.8.5",
"version": "0.8.6",
"description": "The source for https://gethinode.com",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",
"@fullhuman/postcss-purgecss": "^5.0.0",
"@gethinode/hinode": "^0.11.5",
"@gethinode/hinode": "^0.11.6",
"autoprefixer": "^10.4.14",
"bootstrap": "^5.3.0-alpha3",
"cssnano": "^6.0.0",
Expand Down

0 comments on commit 39eb88b

Please sign in to comment.