a39.ca/themes/a39/layouts/partials/menu.html

10 lines
285 B
HTML

<nav class="button-menu">
{{ range .Site.Menus.main }}
<a href="{{ .URL }}" title="{{ .Name }}"><button>
{{ if .Pre }}
{{ printf "<img src=\"%s\" alt=\"%s\"/>" .Pre .Name | safeHTML }}<br/>
{{ end }}
{{ .Name | safeHTML }}
</button></a>
{{ end }}
</nav>