Fixes multi-language mode in navbar menu items

This commit is contained in:
daniel-j-h 2020-04-14 12:47:16 +02:00
parent 43e488a00b
commit 37dcd67653

View File

@ -3,9 +3,9 @@
{{ partial "header.html" . }} {{ partial "header.html" . }}
<div class="nav-menu"> <div class="nav-menu">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<a class="color-link nav-link" href="{{ .URL }}">{{ .Name }}</a> <a class="color-link nav-link" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
{{ end }} {{ end }}
<a class="color-link nav-link" href="{{ .Site.RSSLink }}" target="_blank" rel="noopener" type="application/rss+xml">RSS</a> <a class="color-link nav-link" href="{{ .Site.RSSLink }}" target="_blank" rel="noopener" type="application/rss+xml">RSS</a>
</div> </div>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
</nav> </nav>