fix: use absLangURL for menu url

To avoid problem when the site is hosted in subdirectory
This commit is contained in:
Jimmy Cai
2020-09-13 14:03:41 +02:00
parent 779982eb95
commit 4267346a4a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
{{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
<li {{ if $active }} class='current' {{ end }}>
<a href='{{ .URL }}'>
<a href='{{ .URL | absLangURL }}'>
{{ if .Pre }}
{{ (resources.Get (delimit (slice "icons/" .Pre ".svg") "")).Content | safeHTML }}
{{ end }}