🐛 Fixed the local search engine can't find indexes file & repose error link of article.

This commit is contained in:
凡梦星尘 2022-09-17 21:54:36 +08:00
parent 9bde077b0b
commit f1fafdc587
2 changed files with 2 additions and 2 deletions

View File

@ -958,7 +958,7 @@ params:
enable: true enable: true
# 搜索索引文件路径 # 搜索索引文件路径
# Indexes file path for search # Indexes file path for search
path: searchindexes.xml path: /searchindexes.xml
# 是立即搜索当输入关键字时,可选值: auto | manual # 是立即搜索当输入关键字时,可选值: auto | manual
# If auto, trigger search by changing input. # If auto, trigger search by changing input.
# If manual, trigger search by pressing enter key or search button. # If manual, trigger search by pressing enter key or search button.

View File

@ -3,7 +3,7 @@
{{range where .Site.RegularPages "Kind" "page"}} {{range where .Site.RegularPages "Kind" "page"}}
<entry> <entry>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<url>{{ .Permalink }}</url> <url>{{ .RelPermalink | relLangURL }}</url>
<categories> <categories>
{{- range .Params.categories }}<category>{{ . }}</category>{{- end }} {{- range .Params.categories }}<category>{{ . }}</category>{{- end }}
</categories> </categories>