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,11 +55,13 @@ 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) {
el += `<a class="buttom" onclick="util.scrollComment()">` if (page.comments == undefined || page.comments != false) {
el += icon('default:tocomment') el += `<a class="buttom" onclick="util.scrollComment()">`
el += `<span>${__('btn.comments')}</span>` el += icon('default:tocomment')
el += `</a>` el += `<span>${__('btn.comments')}</span>`
el += `</a>`
}
} }
el += `</div>` el += `</div>`
el += `</widget>` el += `</widget>`

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)