mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user