Skip to content

Commit 0d01b2e

Browse files
authored
Enable site-wide search and update path
Updated search configuration to enable search and change path to search.json.
1 parent 698b311 commit 0d01b2e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

_config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,14 @@ deploy:
143143
repo: git@github.com:GoofySatoshi/GoofySatoshi.github.io.git
144144
branch: main
145145

146-
# Search
146+
# ==================== 站点级 searchdb 插件配置 ====================
147147
search:
148-
path: search.xml
149-
field: post
148+
enable: true
149+
path: search.json # 必须与主题配置的 path 一致
150+
field: post # 搜索范围:post(仅文章)/ page(仅页面)/ all(全部)
150151
format: html
151152
limit: 10000
153+
preload: false
152154

153155
# Feed
154156
feed:

0 commit comments

Comments
 (0)