Add subpages in menu.
This commit is contained in:
parent
95f580911c
commit
9abdee5f7c
Binary file not shown.
@ -6,7 +6,15 @@
|
|||||||
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
|
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<li class="sub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a></li>
|
<li class="sub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
|
||||||
|
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
|
||||||
|
<ul>
|
||||||
|
{{ range .Children }}
|
||||||
|
<li class="subsub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -52,6 +52,10 @@ BODY {
|
|||||||
padding-left: 40px;
|
padding-left: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar .subsub-item > a{
|
||||||
|
padding-left: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar .active > a {
|
.sidebar .active > a {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #428bca;
|
background-color: #428bca;
|
||||||
|
Loading…
Reference in New Issue
Block a user