Add optional navbar separator

It cleanly separates the home page sections from the main menu.

Signed-off-by: Marek Pikuła <[email protected]>
This commit is contained in:
Marek Pikuła
2024-06-02 20:46:59 +02:00
parent 4687d53336
commit 7b480c51ca
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -112,6 +112,7 @@ params:
stickyNavBar:
enable : true
showOnScrollUp : true
enableSeparator: false
menus:
disableAbout: false
disableExperience: false
+4
View File
@@ -139,6 +139,10 @@
</li>
{{ end }}
{{ if and .Site.Menus.main (.Site.Params.navbar.enableSeparator | default false) }}
<li class="nav-item navbar-text"><div class="nav-link nav-link-sep"></div></li>
{{ end }}
<!-- custom menus from the user -->
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
+4
View File
@@ -45,6 +45,10 @@ header .nav-link{
.navbar .nav-link:hover {
color: var(--primary-color) !important;
}
.nav-link.nav-link-sep:after {
content: "|";
color: var(--text-color) !important;
}
li > .dropdown-toggle:focus{
color: var(--primary-color) !important;