mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-17 04:40:53 +08:00
feat: 增加twikoo評論數顯示 feat: 增加toc簡潔模式 feat: 最新評論頭像增加lazyload feat: fontawesome和google字體增加異步加載 fix: 修復上個版本導致的圖庫報沒有jQuery的bugs fix: 修復上個版本導致aside 分類展開/收縮按鈕的bugs improvement: toc點擊時改用document.getElementById獲取參數,避免有些字符導致無法跳轉 close #426 improvement: icp圖片限制大小 close #434 improvement: 最新評論優化,當沒有評論時顯示 '沒有評論' improvement: 若瀏覽器支持,scroll將採用原生瀏覽器支持的滾動方法 improvement: 當屏幕沒有滾動條時,rightside會直接顯示
33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
#rightside
|
|
#rightside-config-hide
|
|
if is_post() && theme.readmode
|
|
button#readmode(type="button" title=_p('rightside.readmode_title'))
|
|
i.fas.fa-book-open
|
|
if theme.translate.enable
|
|
button#translateLink(type="button" title=_p('rightside.translate_title'))= theme.translate.default
|
|
if theme.darkmode.enable && theme.darkmode.button
|
|
button#darkmode(type="button" title=_p('rightside.night_mode_title'))
|
|
i.fas.fa-adjust
|
|
if theme.aside.enable && theme.aside.button && page.aside !== false
|
|
button#hide-aside-btn(type="button" title=_p('rightside.aside'))
|
|
i.fas.fa-arrows-alt-h
|
|
#rightside-config-show
|
|
if is_post()
|
|
if (theme.readmode || theme.translate.enable || (theme.darkmode.enable && theme.darkmode.button))
|
|
button#rightside_config(type="button" title=_p("rightside.setting"))
|
|
i.fas.fa-cog.fa-spin
|
|
if showToc && theme.aside.mobile
|
|
button#mobile-toc-button.close(type="button" title=_p("rightside.toc"))
|
|
i.fas.fa-list-ul
|
|
else if theme.translate.enable || (theme.darkmode.enable && theme.darkmode.button)
|
|
button#rightside_config(type="button" title=_p("rightside.setting"))
|
|
i.fas.fa-cog.fa-spin
|
|
|
|
if theme.chat_btn
|
|
button#chat_btn(type="button" title=_p("rightside.chat_btn"))
|
|
i.fas.fa-sms
|
|
if commentsJsLoad
|
|
a#to_comment(href="#post-comment" title=_p("rightside.scroll_to_comment"))
|
|
i.fas.fa-comments
|
|
button#go-up(type="button" title=_p("rightside.back_to_top"))
|
|
i.fas.fa-arrow-up |