poprawilam menu

This commit is contained in:
shizuka 2018-10-01 16:37:19 +02:00
parent 65dafe3220
commit ec49cbc335
2 changed files with 13 additions and 1 deletions

View File

@ -10,7 +10,15 @@
{{ 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>
<li class="subsub-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="subsubsub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
</ul>
{{ end }}

View File

@ -56,6 +56,10 @@ BODY {
padding-left: 60px;
}
.sidebar .subsubsub-item > a{
padding-left: 80px;
}
.sidebar .active > a {
color: #fff;
background-color: #428bca;