mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
右下角按钮优化:
1.当用户不开启 “阅读模式、黑暗模式、简繁切换” 时,不显示 “齿轮” 图标。 2.当用户仅开启 “阅读模式” 时,首页不显示 “齿轮” 图标,文章中显示 “齿轮图标” 3.其他情况正常显示。
This commit is contained in:
@@ -10,8 +10,12 @@ section#rightside
|
|||||||
button#darkmode(type="button" title=_p('rightside.night_mode_title'))
|
button#darkmode(type="button" title=_p('rightside.night_mode_title'))
|
||||||
i.fas.fa-adjust
|
i.fas.fa-adjust
|
||||||
#rightside-config-show
|
#rightside-config-show
|
||||||
button#rightside_config(type="button" title=_p("rightside.setting"))
|
if !(is_post()) && ((theme.translate && theme.translate.enable) || (theme.darkmode.enable && theme.darkmode.button))
|
||||||
i.fas.fa-cog
|
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
|
if is_post() && page.comments !== false && theme.comments.use
|
||||||
a#to_comment(href="#post-comment" title=_p("rightside.scroll_to_comment"))
|
a#to_comment(href="#post-comment" title=_p("rightside.scroll_to_comment"))
|
||||||
i.fas.fa-comments
|
i.fas.fa-comments
|
||||||
|
|||||||
Reference in New Issue
Block a user