fix: twikoo 评论区表情包去除灯箱渲染

improvement: 搜索和字数统计两个功能添加相应文档地址注释 (太多新人因为这两报错然后到群里问了)
This commit is contained in:
Gahotx 2022-02-14 23:49:20 +08:00
parent c1ac4a5e16
commit 26e8c618d8
2 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,7 @@ social:
# fas fa-envelope: mailto:xxxxxx@gmail.com || Email
# search (搜索)
# see https://butterfly.js.org/posts/ceeb73f/#搜索系統
# --------------------------------------
# Algolia search
@ -148,6 +149,7 @@ post_meta:
label: true # true or false 顯示描述性文字
# wordcount (字數統計)
# see https://butterfly.js.org/posts/ceeb73f/#字數統計
wordcount:
enable: false
post_wordcount: true

View File

@ -9,7 +9,7 @@ script.
envId: '!{envId}',
region: '!{region}',
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)}))
}