mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 08:37:25 +02:00
fix: change subcategory format (#1026)
* fix: change subcategory format * Fix sidebars * Refactor * Fix implementation * Change format
This commit is contained in:
parent
c277f46a60
commit
fe500dea82
19 changed files with 493 additions and 15047 deletions
|
@ -27,8 +27,12 @@ class BlogSidebar extends React.Component {
|
|||
|
||||
const contents = [
|
||||
{
|
||||
name: blogSidebarTitle,
|
||||
links: MetadataBlog.slice(0, blogSidebarCount),
|
||||
type: 'CATEGORY',
|
||||
title: blogSidebarTitle,
|
||||
children: MetadataBlog.slice(0, blogSidebarCount).map(item => ({
|
||||
type: 'LINK',
|
||||
item,
|
||||
})),
|
||||
},
|
||||
];
|
||||
const title = this.props.current && this.props.current.title;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue