Fix menu url in multilingual mode

* See #17
This commit is contained in:
Track3 2018-12-28 15:32:03 +08:00
parent 3ad9401e81
commit 1770524126
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@
{{- end }}
<nav id="home-nav" class="site-nav">
{{- range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{- end }}
</nav>
</div>

View file

@ -6,7 +6,7 @@
</div>
<nav class="site-nav hide-in-mobile">
{{- range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL | absLangURL}}">{{ .Name }}</a>
{{- end }}
</nav>
</div>
@ -24,7 +24,7 @@
<div id="mobile-menu" class="animated fast" style="display: none;">
<ul>
{{- range .Site.Menus.main }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
<li><a href="{{ .URL | absLangURL }}">{{ .Name }}</a></li>
{{- end }}
</ul>
</div>