Add optional navbar separator
It cleanly separates the home page sections from the main menu. Signed-off-by: Marek Pikuła <marek@serenitycode.dev>
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user