mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Making active parent in nav reflect when child is active page in docs
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
{{ $currentNode := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ if .HasChildren }}
|
||||
<li class="dropdown{{if $currentNode.HasMenuCurrent "main" . }} active-child{{end}}">
|
||||
<li class="dropdown{{if $currentNode.HasMenuCurrent "main" . }} active{{end}}">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{.Name}} <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
{{ range .Children }}
|
||||
|
Reference in New Issue
Block a user