Skip to content

Commit 07508db

Browse files
author
runshell
committed
modified: content/search.md
modified: hugo.toml
1 parent 3c16c94 commit 07508db

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

content/search.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: "搜索"
33
layout: "search"
4+
slug: "search"
45
outputs:
5-
- html
6-
- json
6+
- html
7+
- json
78
menu:
8-
main:
9-
weight: -60
10-
params:
11-
icon: search
9+
main:
10+
weight: -60
11+
params:
12+
icon: search
1213
---
13-

hugo.toml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ languageCode = 'zh-CN'
33
title = 'runshell'
44
theme = 'stack'
55

6-
[outputs]
7-
home = ["HTML", "JSON"]
8-
9-
[outputFormats.JSON]
10-
mediaType = "application/json"
11-
baseName = "index"
12-
isPlainText = true
13-
146

157

168
features = [
@@ -45,10 +37,6 @@ features = [
4537
[Params.widgets]
4638
[[Params.widgets.homepage]]
4739
type = "search"
48-
params = {
49-
placeholder = "搜索文章...",
50-
searchJsonUrl = "/index.json"
51-
}
5240
[[Params.widgets.homepage]]
5341
type = "archives"
5442
params = {}

0 commit comments

Comments
 (0)