werc/root/lib/menu.html
Sam Therapy 95084c73c5
Migrate to go modules
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-07-10 15:57:19 +02:00

15 lines
317 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<ul>
{{range .}}
{{if .This}}
<li><a class="thisPage" href="{{.Path}}">» {{.Name}}</a></li>
{{else}}
<li><a href="{{.Path}}"> {{.Name}}</a></li>
{{end}}
{{with $sub := .Sub}}
<li>
{{template "menu.html" $sub}}
</li>
{{end}}
{{end}}
</ul>