26 lines
684 B
HTML
26 lines
684 B
HTML
<aside>
|
|
<ul id="nav">
|
|
{{ $currentPage := . }}
|
|
{{ range .Site.Menus.main }}
|
|
{{ if .HasChildren }}
|
|
<p>
|
|
<a href="#">
|
|
{{ .Pre }}
|
|
<span>{{ .Name }}</span>
|
|
</a>
|
|
</p>
|
|
<ul class="sub-menu">
|
|
{{ range .Children }}
|
|
<li class="{{ if $currentPage.IsMenuCurrent " main" . }}active{{ end }}">
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ else }}
|
|
<li class="menu-item">
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</aside> |