2022-10-29 03:08:38 +00:00
|
|
|
<aside>
|
2022-11-27 21:46:02 +00:00
|
|
|
<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">
|
2022-10-29 03:08:38 +00:00
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
2022-11-27 21:46:02 +00:00
|
|
|
{{ end }}
|
2022-10-29 03:08:38 +00:00
|
|
|
</ul>
|
|
|
|
</aside>
|