feat: 本地搜索增加preload,cdn 配置 closed #859

feat: 搜索內容顯示區域變大
feat: algolia 搜索增加文章內容顯示和高亮
feat: 搜索內容增加 ... 縮略辨識
fix: algolia 第一次進入時會自動搜索
fix: mathjax 顯示不完全的 bug
This commit is contained in:
Jerry
2022-04-14 00:32:25 +08:00
parent 3cb2120630
commit a33602e023
10 changed files with 256 additions and 168 deletions

View File

@@ -19,7 +19,8 @@
let localSearch = 'undefined';
if (theme.local_search && theme.local_search.enable) {
localSearch = JSON.stringify({
path: config.search.path,
path: theme.local_search.CDN ? theme.local_search.CDN : config.root + config.search.path,
preload: theme.local_search.preload,
languages: {
// search languages
hits_empty: _p("search.local_search.hits_empty"),