Added support for i18n url in main menu

This commit is contained in:
Memory Clutter 2022-11-05 16:11:16 +03:00
parent ef4d32b949
commit 4b2c4a2677

View file

@ -8,7 +8,7 @@
<nav class="flex items-center <nav class="flex items-center
whitespace-nowrap overflow-x-auto overflow-y-hidden"> whitespace-nowrap overflow-x-auto overflow-y-hidden">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<a class="ml-5" href="{{ .URL }}">{{ .Name }}</a> <a class="ml-5" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{ end }} {{ end }}
</nav> </nav>
</header> </header>