diff --git a/exampleSite/content/docs/getting-started/index.md b/exampleSite/content/docs/getting-started/index.md index 401ae1b5..379d8a6c 100644 --- a/exampleSite/content/docs/getting-started/index.md +++ b/exampleSite/content/docs/getting-started/index.md @@ -151,9 +151,9 @@ When you create a new taxonomy, you will need to adjust the navigation links on ## Menus -Blowfish has two menus that can be customised to suit the content and layout of your site. The `main` menu appears in the site header and the `footer` menu appears at the bottom of the page just above the copyright notice. +Blowfish has 3 menus that can be customised to suit the content and layout of your site. The `main` menu appears in the site header, the `subnavigation` menu just below `main` and the `footer` menu appears at the bottom of the page just above the copyright notice. -Both menus are configured in the `menus.en.toml` file. Similarly to the languages config file, if you wish to use another language, rename this file and replace `en` with the language code you wish to use. +All of them can be configured in the `menus.en.toml` file. Similarly to the languages config file, if you wish to use another language, rename this file and replace `en` with the language code you wish to use. ```toml # config/_default/menus.toml @@ -180,6 +180,16 @@ Both menus are configured in the `menus.en.toml` file. Similarly to the language url = "https://github.com/nunocoracao/blowfish" weight = 40 +[[subnavigation]] + name = "An interesting topic" + pageRef = "tags/interesting-topic" + weight = 10 + +[[subnavigation]] + name = "My Awesome Category" + pageRef = "categories/awesome" + weight = 20 + [[footer]] name = "Privacy" url = "https://external-link" diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index 0da1855d..3574ddc5 100644 --- a/layouts/partials/header/basic.html +++ b/layouts/partials/header/basic.html @@ -1,5 +1,5 @@
+ class="site-header flex items-center justify-between px-4 py-6 sm:px-6 md:justify-start space-x-3"> {{ if .Site.Params.Logo -}} {{ $logo := resources.Get .Site.Params.Logo }} {{ if $logo }} @@ -15,14 +15,14 @@ {{ end }} {{- end }}
-
+ +{{ if .Site.Menus.subnavigation }} +
+ +
+{{ end }}