网站添加Mkdocs博客¶
博客效果展示: 博客
官方文档: Built-in blog plugin
与所有内置插件一样,博客插件的入门非常简单。只需将以下行添加到mkdocs.yml
| Text Only | |
|---|---|
1 2 | |
然后在/docs/blog/posts下写md文件即可(无需再mkdocs.yml配置,如没有post文件,新建一个即可) 但是bolg文件夹下要有index.md文件(没有这个文件新建即可)!
在mkdocs.yml的nav部分这样写
| Text Only | |
|---|---|
1 2 3 | |
元标签参考:
| Text Only | |
|---|---|
1 2 3 4 5 6 7 8 | |
作者信息在docs/blog/.authors.yml里配置(没有.authors.yml新建即可)
| Text Only | |
|---|---|
1 2 3 4 5 | |