diff --git a/layout/_partial/widgets/toc.ejs b/layout/_partial/widgets/toc.ejs index 57fe2c7..a7942a2 100644 --- a/layout/_partial/widgets/toc.ejs +++ b/layout/_partial/widgets/toc.ejs @@ -55,11 +55,13 @@ function layoutDiv(fallback) { el += icon('default:upup') el += `${__('btn.top')}` el += `` - if (page.comments) { - el += `` - el += icon('default:tocomment') - el += `${__('btn.comments')}` - el += `` + if (theme.comments.service && theme.comments.service.length > 0) { + if (page.comments == undefined || page.comments != false) { + el += `` + el += icon('default:tocomment') + el += `${__('btn.comments')}` + el += `` + } } el += `` el += `` diff --git a/source/css/_components/partial/article-banner.styl b/source/css/_components/partial/article-banner.styl index 3690b3e..a08752d 100644 --- a/source/css/_components/partial/article-banner.styl +++ b/source/css/_components/partial/article-banner.styl @@ -13,7 +13,7 @@ .article.banner .content .top align-items: flex-start - margin: 1rem 'calc(1rem - 4px)' + margin: 1rem calc(1rem - 4px) .title font-size: $fsh1 color: var(--text-banner)