diff --git a/CHANGELOG.md b/CHANGELOG.md index e6baddb959..aac279074e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ --- order: 3 -chinese: 更新日志 +title: 更新日志 toc: false timeline: true --- diff --git a/site/theme/static/markdown.less b/site/theme/static/markdown.less index 3edd32c5fd..7c107396e7 100644 --- a/site/theme/static/markdown.less +++ b/site/theme/static/markdown.less @@ -15,7 +15,7 @@ .markdown h1 { color: #404040; - font-weight: bold; + font-weight: 500; line-height: 40px; margin-bottom: 24px; margin-top: 8px; diff --git a/site/theme/template/Content/Article.jsx b/site/theme/template/Content/Article.jsx index fc21e4d0a3..234862df15 100644 --- a/site/theme/template/Content/Article.jsx +++ b/site/theme/template/Content/Article.jsx @@ -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 :
{props.utils.toReactComponent(content.toc)}
} { diff --git a/site/theme/template/utils.jsx b/site/theme/template/utils.jsx index bff449511c..d0c19aebab 100644 --- a/site/theme/template/utils.jsx +++ b/site/theme/template/utils.jsx @@ -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] = {};