11 lines
246 B
HTML
11 lines
246 B
HTML
<ul>
|
|
{{ $currentPage := . }}
|
|
{{ range .Site.Menus.main }}
|
|
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
|
|
<a href="{{ .URL }}">
|
|
{{ .Pre }}
|
|
<span>{{ .Name }}</span>
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|