parcoursmob/themes/default/web/layouts/_partials/mainmenu.html

19 lines
528 B
HTML
Raw Normal View History

{{define "mainmenu"}}
{{range .LayoutState.MenuItems}}
<nav class="px-2 space-y-1">
<a href="{{.Link}}"
{{ if .Active }}
class="bg-white text-co-blue group flex items-center px-2 py-2 text-base font-medium rounded-2xl">
{{ else}}
class="text-white hover:bg-white hover:bg-opacity-5 group flex items-center px-2 py-2 text-base font-medium rounded-2xl">
{{end}}
{{$.IconSet.Icon .Icon "mr-4 flex-shrink-0 h-6 w-6"}}
{{.Title}}
</a>
</nav>
{{end}}
{{end}}