Skip to content

Commit

Permalink
启用搜索2
Browse files Browse the repository at this point in the history
  • Loading branch information
czy-29 committed Sep 11, 2024
1 parent a8f0c6e commit 9d9caf8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gitops.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ repo = "deploy-svc-29bot.com"

[hugo.deploy.oss.sync]
root = "/"
files = ["404.html", "index.html", "sitemap.xml"]
files = ["404.html", "index.html", "index.json", "sitemap.xml"]
dirs = ["categories", "css", "images", "js", "post", "readme", "tags"]
8 changes: 8 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ email = "[email protected]"
url = "https://29bot.com"

enableSearch = true

[outputs]
home = ["html", "json"]

[outputFormats.json]
mediaType = "application/json"
baseName = "index"
isPlainText = false

0 comments on commit 9d9caf8

Please sign in to comment.