This commit is contained in:
yuweizzz
2024-09-03 23:41:28 +08:00
parent b6c3256428
commit 99afb0f751
10 changed files with 231 additions and 8 deletions

View File

@@ -217,6 +217,25 @@ And it will show like this:
<p>block content</p>
</details>
## Support local search
add to `config.toml`
```toml
[params]
enableSearch = true
[outputs]
home = ["html", "json"]
[outputFormats.json]
mediaType = "application/json"
baseName = "index"
isPlainText = false
```
We can do local search now, it is implemented by `fuse.js`.
## deploy.sh example
There are various way to deploy to github, here is a link to official [document](https://gohugo.io/hosting-and-deployment/hosting-on-github/).