2 {{ $currentPage := . }}
3 {{ range .Site.Menus.main }}
5 <li class=
"{{ if $currentPage.HasMenuCurrent "main
" . }}active{{ end }}">
6 <a href=
"#">{{ .Pre }}
<span>{{ .Name }}
</span></a>
10 <li class=
"{{ if $currentPage.IsMenuCurrent "main
" . }}active{{ end }}">
11 <a href=
"{{ .URL }}">{{ .Name }}
</a>
17 <a href=
"{{ .URL }}">{{ .Pre }}
<span>{{ .Name }}
</span></a>