mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-29 12:47:34 +00:00
11 lines
321 B
Plaintext
11 lines
321 B
Plaintext
|
{{ define "menu" }}
|
||
|
<nav>
|
||
|
{{ with menu "main" }}
|
||
|
{{ $first := true }}
|
||
|
{{ range $i, $item := .Items }}
|
||
|
{{ if ne $first true }} • {{ end }}<a
|
||
|
href="{{ $item.Link }}">{{ $item.Title }}</a>{{ $first = false }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
</nav>
|
||
|
{{ end }}
|