fix(bug): 文章banner非法属性, 目录讨论按钮逻辑 (#475)

This commit is contained in:
纸鹿/Zhilu 2024-05-28 23:16:29 +08:00 committed by GitHub
parent b9b9324705
commit c5aafde03c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View File

@ -55,12 +55,14 @@ function layoutDiv(fallback) {
el += icon('default:upup') el += icon('default:upup')
el += `<span>${__('btn.top')}</span>` el += `<span>${__('btn.top')}</span>`
el += `</a>` el += `</a>`
if (page.comments) { if (theme.comments.service && theme.comments.service.length > 0) {
if (page.comments == undefined || page.comments != false) {
el += `<a class="buttom" onclick="util.scrollComment()">` el += `<a class="buttom" onclick="util.scrollComment()">`
el += icon('default:tocomment') el += icon('default:tocomment')
el += `<span>${__('btn.comments')}</span>` el += `<span>${__('btn.comments')}</span>`
el += `</a>` el += `</a>`
} }
}
el += `</div>` el += `</div>`
el += `</widget>` el += `</widget>`
return el return el

View File

@ -13,7 +13,7 @@
.article.banner .content .article.banner .content
.top .top
align-items: flex-start align-items: flex-start
margin: 1rem 'calc(1rem - 4px)' margin: 1rem calc(1rem - 4px)
.title .title
font-size: $fsh1 font-size: $fsh1
color: var(--text-banner) color: var(--text-banner)