Docusaurus 博客支持
· 2 min read
Docusaurus 使用 @docusaurus/plugin-content-blog 插件提供博客功能,classic 预设包含此插件,无须手动安装。
首先需要添加作者和文章的标签信息,用于在每篇博客的 Front Matter 中使用。 添加全局作者信息
autherKey:键名,用于在博客的 Front Matter 引用作者name:姓名title:职位/头衔url:个人网址social:社交账号githubx
website/blog/authors.yml
jmarcey:
name: Joel Marcey
title: Co-creator of Docusaurus 1
url: https://github.com/JoelMarcey
image_url: https://github.com/JoelMarcey.png
email: jimarcey@gmail.com
socials:
x: joelmarcey
github: JoelMarcey
slorber:
name: Sébastien Lorber
title: Docusaurus maintainer
url: https://sebastienlorber.com
image_url: https://github.com/slorber.png
socials:
x: sebastienlorber
github: slorber
email: seb@example.com