fix(bug): 文章banner非法属性, 目录讨论按钮逻辑 (#475)
This commit is contained in:
parent
b9b9324705
commit
c5aafde03c
|
@ -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>`
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue