1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00
echo/website/layouts/partials/menu.html

19 lines
564 B
HTML
Raw Normal View History

<nav class="w3-sidenav">
{{ $currentNode := . }}
{{ range .Site.Menus.side }}
<h4>{{ .Pre }} {{ .Name }}</h4>
{{ range .Children }}
<a{{ if $currentNode.IsMenuCurrent "side" . }} class="w3-theme"{{ end }} href="{{ .URL }}">
{{ .Name }}
</a>
{{ if .HasChildren }}
{{ range .Children }}
<a {{ if $currentNode.IsMenuCurrent "side" . }} class="w3-theme"{{ end }} href="{{ .URL }}">
{{ .Name }}
</a>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</nav>