mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
fix: 修復首頁文章 valine 評論數只顯示第一篇的 bug fix: 修復子目錄下,第三方插件本地資源無法加載的 bug closed #908 fix: 評論系統開啟時 busuanzi 的 page_pv 不顯示的 bug closed #902 fix: 修復 pjax 下,使用 mermaid 跳轉會重新加載的 bug
43 lines
1.2 KiB
Plaintext
43 lines
1.2 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'
|
|
#disqusjs
|
|
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 'Waline'
|
|
#waline-wrap
|
|
when 'Giscus'
|
|
#giscus-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%")
|