Skip to content

Commit

Permalink
🐛 Fixed the local search engine can't find indexes file & repose erro…
Browse files Browse the repository at this point in the history
…r link of article.
  • Loading branch information
elkan1788 committed Sep 17, 2022
1 parent 9bde077 commit f1fafdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exampleSite/config.yaml
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/list.localindexes.xml
Expand Up @@ -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>
Expand Down

0 comments on commit f1fafdc

Please sign in to comment.