Skip to content

Commit 3c16c94

Browse files
author
runshell
committed
modified: hugo.toml
1 parent d72467a commit 3c16c94

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

hugo.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,18 @@ features = [
3737
[Params.Footer]
3838
since = 2018
3939
customText = "runshell"
40+
[Params.Search]
41+
enable = true
42+
type = "json"
43+
contentLength = 5000 # 索引内容长度
44+
4045
[Params.widgets]
4146
[[Params.widgets.homepage]]
4247
type = "search"
43-
params = {}
48+
params = {
49+
placeholder = "搜索文章...",
50+
searchJsonUrl = "/index.json"
51+
}
4452
[[Params.widgets.homepage]]
4553
type = "archives"
4654
params = {}

0 commit comments

Comments
 (0)