tobast.fr-hugo/layouts/partials/menu.html

12 lines
246 B
HTML
Raw Normal View History

2019-10-10 19:30:34 +02:00
<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>