Skip to main content

One post tagged with "Docusaurus"

Docusaurus 是一个由 Meta 开源的静态站点生成器,专注于快速构建与维护以文档为核心的技术网站。

View All Tags

Docusaurus 博客支持

· 2 min read

Docusaurus 使用 @docusaurus/plugin-content-blog 插件提供博客功能classic 预设包含此插件,无须手动安装。

首先需要添加作者和文章的标签信息,用于在每篇博客的 Front Matter 中使用。 添加全局作者信息

  • autherKey:键名,用于在博客的 Front Matter 引用作者
    • name:姓名
    • title:职位/头衔
    • url:个人网址
    • social:社交账号
      • github
      • x
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