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 += `<span>${__('btn.top')}</span>`
el += `</a>`
if (page.comments) {
el += `<a class="buttom" onclick="util.scrollComment()">`
el += icon('default:tocomment')
el += `<span>${__('btn.comments')}</span>`
el += `</a>`
if (theme.comments.service && theme.comments.service.length > 0) {
if (page.comments == undefined || page.comments != false) {
el += `<a class="buttom" onclick="util.scrollComment()">`
el += icon('default:tocomment')
el += `<span>${__('btn.comments')}</span>`
el += `</a>`
}
}
el += `</div>`
el += `</widget>`

View File

@ -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)