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:
@@ -112,6 +112,7 @@ params:
|
|||||||
stickyNavBar:
|
stickyNavBar:
|
||||||
enable : true
|
enable : true
|
||||||
showOnScrollUp : true
|
showOnScrollUp : true
|
||||||
|
enableSeparator: false
|
||||||
menus:
|
menus:
|
||||||
disableAbout: false
|
disableAbout: false
|
||||||
disableExperience: false
|
disableExperience: false
|
||||||
|
|||||||
@@ -139,6 +139,10 @@
|
|||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ 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 -->
|
<!-- custom menus from the user -->
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ header .nav-link{
|
|||||||
.navbar .nav-link:hover {
|
.navbar .nav-link:hover {
|
||||||
color: var(--primary-color) !important;
|
color: var(--primary-color) !important;
|
||||||
}
|
}
|
||||||
|
.nav-link.nav-link-sep:after {
|
||||||
|
content: "|";
|
||||||
|
color: var(--text-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
li > .dropdown-toggle:focus{
|
li > .dropdown-toggle:focus{
|
||||||
color: var(--primary-color) !important;
|
color: var(--primary-color) !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user