Skip to content

Commit 0bbaf7d

Browse files
author
Zhili Yang
committed
add the local search.
1 parent 5d09cd4 commit 0bbaf7d

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

_config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,9 @@ deploy:
8181
type: git
8282
repository: git@github.com:SysTick/systick.github.io.git
8383
branch: master
84+
85+
search:
86+
path: search.xml
87+
field: post
88+
format: html
89+
limit: 10000

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"hexo-generator-archive": "^0.1.4",
1212
"hexo-generator-category": "^0.1.3",
1313
"hexo-generator-index": "^0.2.0",
14+
"hexo-generator-searchdb": "^1.0.8",
1415
"hexo-generator-tag": "^0.2.0",
1516
"hexo-renderer-ejs": "^0.3.0",
1617
"hexo-renderer-marked": "^0.3.0",

themes/next/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ algolia_search:
537537
# Local search
538538
# Dependencies: https://github.com/flashlab/hexo-generator-search
539539
local_search:
540-
enable: false
540+
enable: true
541541
# if auto, trigger search by changing input
542542
# if manual, trigger search by pressing enter key or search button
543543
trigger: auto

0 commit comments

Comments
 (0)