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:
Marek Pikuła
2024-06-02 20:46:59 +02:00
parent 4687d53336
commit 7b480c51ca
3 changed files with 9 additions and 0 deletions
+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 }}