Merge pull request #246 from martinord/rellang-menu

Use relative lang URL in menu entries
This commit is contained in:
Djordje Atlialp 2021-01-10 17:32:18 +01:00 committed by GitHub
commit 79dba71249
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
<ul class="menu__inner">
{{- $currentPage := . -}}
{{ range .Site.Menus.main -}}
<li><a href="{{ .URL | absLangURL }}">{{ .Name }}</a></li>
<li><a href="{{ .URL | relLangURL }}">{{ .Name }}</a></li>
{{- end }}
</ul>
</nav>