右下角按钮优化:

1.当用户不开启 “阅读模式、黑暗模式、简繁切换” 时,不显示 “齿轮” 图标。
2.当用户仅开启 “阅读模式” 时,首页不显示 “齿轮” 图标,文章中显示 “齿轮图标”
3.其他情况正常显示。
This commit is contained in:
ConstOwn 2020-09-06 11:56:45 +08:00
parent 8038af5aca
commit b99bdc2c96

View File

@ -10,8 +10,12 @@ section#rightside
button#darkmode(type="button" title=_p('rightside.night_mode_title'))
i.fas.fa-adjust
#rightside-config-show
button#rightside_config(type="button" title=_p("rightside.setting"))
i.fas.fa-cog
if !(is_post()) && ((theme.translate && theme.translate.enable) || (theme.darkmode.enable && theme.darkmode.button))
button#rightside_config(type="button" title=_p("rightside.setting"))
i.fas.fa-cog
else if is_post() && (theme.readmode || (theme.translate && theme.translate.enable) || (theme.darkmode.enable && theme.darkmode.button))
button#rightside_config(type="button" title=_p("rightside.setting"))
i.fas.fa-cog
if is_post() && page.comments !== false && theme.comments.use
a#to_comment(href="#post-comment" title=_p("rightside.scroll_to_comment"))
i.fas.fa-comments