@ -1,6 +1,6 @@
---
order: 3
chinese: 更新日志
title: 更新日志
toc: false
timeline: true
@ -15,7 +15,7 @@
.markdown h1 {
color: #404040;
font-weight: bold;
font-weight: 500;
line-height: 40px;
margin-bottom: 24px;
margin-top: 8px;
@ -63,7 +63,7 @@ export default class Article extends React.Component {
)
}
{
(!content.toc || meta.toc === false) ? null :
(!content.toc || content.toc.length <= 1 || meta.toc === false) ? null :
<section className="toc">{props.utils.toReactComponent(content.toc)}</section>
@ -20,7 +20,6 @@ export function getMenuItems(data) {
menuMeta.sort(
(a, b) => (a.order || 0) - (b.order || 0)
).forEach((meta) => {
console.log(meta);
const category = meta.category || 'topLevel';
if (!menuItems[category]) {
menuItems[category] = {};