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