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