feat(search): add pagefind search engine support (#738)

* feat(search): add native pagefind support

* chore: code review and change

---------

Co-authored-by: Cell <1024@lruihao.cn>
This commit is contained in:
0x5c0f
2026-05-19 16:19:39 +08:00
committed by GitHub
parent 78778dad08
commit 4ffd531d63
12 changed files with 218 additions and 7 deletions
+14 -1
View File
@@ -507,7 +507,7 @@ dark = "#151b23"
# Search config
[params.search]
enable = false
# type of search engine ["algolia", "fuse", "cse", "post-chat"]
# type of search engine ["algolia", "fuse", "pagefind", "cse", "post-chat"]
type = "fuse"
# max index length of the chunked content
contentLength = 4000
@@ -541,6 +541,19 @@ ignoreLocation = false
useExtendedSearch = false
ignoreFieldNorm = false
# Pagefind search config (http://pagefind.app/)
[params.search.pagefind]
# Pagefind bundle and index directory
bundlePath = "pagefind/"
# debounce timeout in milliseconds, set to 0 to disable debounce
debounceTimeoutMs = 300
# whether to respect FixIt built-in search visibility rules
useBuiltInFilters = true
# optional sort field, current recommended built-in value: "date"
sortBy = ""
# sort order for sortBy: ["asc", "desc"]
sortOrder = "desc"
# FixIt 0.3.16 | NEW Custom Search Engine (CSE)
[params.cse]
# search engine: ["google", "bing"]