mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 17:30: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會直接顯示
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
- let defaultComment = theme.comments.use[0]
|
|
hr
|
|
#post-comment
|
|
.comment-head
|
|
.comment-headline
|
|
i.fas.fa-comments.fa-fw
|
|
span= ' ' + _p('comment')
|
|
|
|
if theme.comments.use.length > 1
|
|
#comment-switch
|
|
span.first-comment=defaultComment
|
|
span.switch-btn
|
|
span.second-comment=theme.comments.use[1]
|
|
|
|
|
|
.comment-wrap
|
|
each name in theme.comments.use
|
|
div
|
|
case name
|
|
when 'Disqus'
|
|
#disqus_thread
|
|
when 'Valine'
|
|
#vcomment.vcomment
|
|
when 'Disqusjs'
|
|
#disqus_thread
|
|
when 'Livere'
|
|
#lv-container(data-id="city" data-uid=theme.livere.uid)
|
|
when 'Gitalk'
|
|
#gitalk-container
|
|
when 'Utterances'
|
|
#utterances-wrap
|
|
when 'Twikoo'
|
|
#twikoo-wrap
|
|
when 'Facebook Comments'
|
|
.fb-comments(data-colorscheme = theme.display_mode === 'dark' ? 'dark' : 'light'
|
|
data-numposts= theme.facebook_comments.pageSize || 10
|
|
data-order-by= theme.facebook_comments.order_by || 'social'
|
|
data-width="100%")
|