Redo_blog
重新弄blog
搜索
config.toml 添加
[params.search]
client = "fuse"添加search.md在 /content 目录即可。
---
type: page
layout: search
outputs:
- html
- json
---添加评论功能–Utterances
Utterances 只支持github,但是很方便
config.toml 中
[params.comments] enable = true
[params.comments.utterances]
enable = true
issueTerm = “pathname” # pathname / url / title / og:title /
[params.comments.utterances.github] username = “Tangzhongham” repository = “blog-comments”
username 填写自己的github用户名,repository 为自己新建1个仓库即可。
😄😁
404
404 页面本地跑位于 http://localhost:1313/404.html