mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
fix: twikoo 评论区表情包去除灯箱渲染
improvement: 搜索和字数统计两个功能添加相应文档地址注释 (太多新人因为这两报错然后到群里问了)
This commit is contained in:
@@ -39,6 +39,7 @@ social:
|
|||||||
# fas fa-envelope: mailto:xxxxxx@gmail.com || Email
|
# fas fa-envelope: mailto:xxxxxx@gmail.com || Email
|
||||||
|
|
||||||
# search (搜索)
|
# search (搜索)
|
||||||
|
# see https://butterfly.js.org/posts/ceeb73f/#搜索系統
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
|
||||||
# Algolia search
|
# Algolia search
|
||||||
@@ -148,6 +149,7 @@ post_meta:
|
|||||||
label: true # true or false 顯示描述性文字
|
label: true # true or false 顯示描述性文字
|
||||||
|
|
||||||
# wordcount (字數統計)
|
# wordcount (字數統計)
|
||||||
|
# see https://butterfly.js.org/posts/ceeb73f/#字數統計
|
||||||
wordcount:
|
wordcount:
|
||||||
enable: false
|
enable: false
|
||||||
post_wordcount: true
|
post_wordcount: true
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ script.
|
|||||||
envId: '!{envId}',
|
envId: '!{envId}',
|
||||||
region: '!{region}',
|
region: '!{region}',
|
||||||
onCommentLoaded: function () {
|
onCommentLoaded: function () {
|
||||||
btf.loadLightbox(document.querySelectorAll('#twikoo .tk-content img:not(.vemoji)'))
|
btf.loadLightbox(document.querySelectorAll('#twikoo .tk-content img:not(.tk-owo-emotion)'))
|
||||||
}
|
}
|
||||||
}, !{JSON.stringify(option)}))
|
}, !{JSON.stringify(option)}))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user