fix: incorrect image & menu path for site hosted in subdir (#168)

This commit is contained in:
Jimmy Cai
2021-03-07 13:13:07 +01:00
committed by GitHub
parent 9befda7310
commit 3e8490da1d
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
{{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
<li {{ if $active }} class='current' {{ end }}>
<a href='{{ .URL | relURL }}'>
<a href='{{ .URL }}'>
{{ if .Pre }}
{{ partial "helper/icon" .Pre }}
{{ end }}