From c43546d6e5f1f9298899bd255f189ebc8bfab7e1 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 31 Dec 2020 16:01:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20twikoo=E5=A2=9E=E5=8A=A0=20region=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=20fix:=20=E4=BF=AE=E5=BE=A9twikoo=20?= =?UTF-8?q?=E5=BB=A3=E5=B7=9E=E5=9C=B0=E5=9F=9F=E4=B8=8B=EF=BC=8C=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E8=A9=95=E8=AB=96=E7=84=A1=E6=B3=95=E8=AE=80=E5=8F=96?= =?UTF-8?q?=E7=9A=84bugs=20fix:=20=E4=BF=AE=E5=BE=A9waline=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E8=A8=AD=E5=AE=9A=E7=84=A1=E6=95=88=E7=9A=84bugs=20fi?= =?UTF-8?q?x:=20=E4=BF=AE=E5=BE=A9twikoo=20=E5=BB=A3=E5=B7=9E=E5=9C=B0?= =?UTF-8?q?=E5=9F=9F=E4=B8=8B=EF=BC=8Cpage=20=E9=A0=81=E9=80=B2=E5=85=A5po?= =?UTF-8?q?st=E9=A0=81=EF=BC=8Ctwikoo=E8=A9=95=E8=AB=96=E5=A0=B1=E9=8C=AF?= =?UTF-8?q?=E7=9A=84bugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 1 + layout/includes/third-party/comments/twikoo.pug | 3 ++- layout/includes/third-party/newest-comments/twikoo-comment.pug | 1 + package.json | 2 +- source/css/_layout/third-party.styl | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 06ebbee..d6f20b9 100644 --- a/_config.yml +++ b/_config.yml @@ -336,6 +336,7 @@ facebook_comments: # https://github.com/imaegoo/twikoo twikoo: envId: + region: option: # Chat Services diff --git a/layout/includes/third-party/comments/twikoo.pug b/layout/includes/third-party/comments/twikoo.pug index a3f249e..e28233c 100644 --- a/layout/includes/third-party/comments/twikoo.pug +++ b/layout/includes/third-party/comments/twikoo.pug @@ -5,8 +5,9 @@ script. const $countDom = document.getElementById('twikoo-count') const init = () => { let initData = { + el: '#twikoo-wrap', envId: '!{theme.twikoo.envId}', - el: '#twikoo-wrap' + region: '!{theme.twikoo.region}' } if (!{Boolean(option)}) { diff --git a/layout/includes/third-party/newest-comments/twikoo-comment.pug b/layout/includes/third-party/newest-comments/twikoo-comment.pug index 3af9f93..13fdea4 100644 --- a/layout/includes/third-party/newest-comments/twikoo-comment.pug +++ b/layout/includes/third-party/newest-comments/twikoo-comment.pug @@ -17,6 +17,7 @@ script. const runTwikoo = () => { twikoo.getRecentComments({ envId: '!{theme.twikoo.envId}', + region: '!{theme.twikoo.region}', pageSize: !{theme.newest_comments.limit}, includeReply: true }).then(function (res) { diff --git a/package.json b/package.json index f17b1cb..2b6d80d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "3.5.0", + "version": "3.5.1", "description": "A Simple and Card UI Design theme for Hexo", "main": "package.json", "scripts": { diff --git a/source/css/_layout/third-party.styl b/source/css/_layout/third-party.styl index 3c1ab6c..334c4a4 100644 --- a/source/css/_layout/third-party.styl +++ b/source/css/_layout/third-party.styl @@ -31,7 +31,7 @@ if hexo-config('valine.bg') background: url(hexo-config('valine.bg')) 100% 100% no-repeat if hexo-config('waline.bg') - #waline + #waline-wrap textarea background: url(hexo-config('waline.bg')) 100% 100% no-repeat