From 26e8c618d8bf47f886fdf89a674c49468edb5d5a Mon Sep 17 00:00:00 2001 From: Gahotx Date: Mon, 14 Feb 2022 23:49:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20twikoo=20=E8=AF=84=E8=AE=BA=E5=8C=BA?= =?UTF-8?q?=E8=A1=A8=E6=83=85=E5=8C=85=E5=8E=BB=E9=99=A4=E7=81=AF=E7=AE=B1?= =?UTF-8?q?=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit improvement: 搜索和字数统计两个功能添加相应文档地址注释 (太多新人因为这两报错然后到群里问了) --- _config.yml | 2 ++ layout/includes/third-party/comments/twikoo.pug | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 96bbe9a..5f82c9b 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/layout/includes/third-party/comments/twikoo.pug b/layout/includes/third-party/comments/twikoo.pug index d7a8831..3b85372 100644 --- a/layout/includes/third-party/comments/twikoo.pug +++ b/layout/includes/third-party/comments/twikoo.pug @@ -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)})) }