22 lines
532 B
HTML
22 lines
532 B
HTML
<aside class="px-2 text-gray-600">
|
|
{{ $currentNode := . }}
|
|
{{ range .Site.Menus.sidebar }}
|
|
{{ if .HasChildren }}
|
|
<p class="uppercase font-title pb-2 pt-4 text-sm text-gray-500">
|
|
{{ .Pre }}
|
|
{{ .Name }}
|
|
</p>
|
|
<ul>
|
|
{{ range .Children }}
|
|
<li>
|
|
<a href="{{ .URL }}" class="px-2 py-1.5 block rounded-sm hover:bg-gray-200 {{ if $currentNode.IsMenuCurrent "sidebar" . }} !bg-primary text-white {{ end }}">
|
|
{{ .Pre }}
|
|
{{ .Name }}
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
{{ end }}
|
|
</aside>
|