跳至主要内容

改版3.2.0(目前版本)

· 閱讀時間約 1 分鐘
Weiwei
前端小白

Changelog

Blog功能(即Article、Changelog等等)現在可以設定LastUpdateAuthorLastUpdateTime了!Just like docs!

feat(blog): add LastUpdateAuthor & LastUpdateTime #9912

有新功能當然用爆!

docusaurus.config.js
blog: {
showReadingTime: true,
routeBasePath: "/article",
path: "article",
blogSidebarTitle: "所有文章",
blogSidebarCount: "ALL",
showLastUpdateAuthor: true,
showLastUpdateTime: true,
}
plugins: [
// 第二個blog的需求,使用plugins另開一個
[
"@docusaurus/plugin-content-blog",
{
/**
* Required for any multi-instance plugin
*/
id: "changelog",
/**
* URL route for the blog section of your site.
* *DO NOT* include a trailing slash.
*/
routeBasePath: "/changelog",
/**
* Path to data on filesystem relative to site dir.
*/
path: "changelog",
blogSidebarTitle: "所有紀錄",
blogSidebarCount: "ALL",
showLastUpdateAuthor: true,
showLastUpdateTime: true,
// 如果要取消掉側邊欄位的話可以改成0
// blogSidebarCount: 0,
},
],
],
目前全站設定

觀看本站目前完整詳細設定