fix: non-unicode character in popover and search #67, #68

This commit is contained in:
Jacky Zhao
2022-04-02 12:59:38 -07:00
parent e30e4e12f9
commit 39794d4d69
7 changed files with 236 additions and 247 deletions

View File

@ -2,7 +2,7 @@
<ul class="backlinks">
{{$url := urls.Parse .Site.BaseURL }}
{{$host := strings.TrimRight "/" $url.Path }}
{{$curPage := strings.TrimPrefix $host (strings.TrimRight "/" .Page.RelPermalink) }}
{{$curPage := strings.TrimPrefix $host (strings.TrimRight "/" .Page.RelPermalink)}}
{{$linkIndex := getJSON "/assets/indices/linkIndex.json"}}
{{$inbound := index $linkIndex.index.backlinks $curPage}}
{{$contentTable := getJSON "/assets/indices/contentIndex.json"}}