mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 22:17:06 +08:00
feat: twikoo增加 region 配置
fix: 修復twikoo 廣州地域下,最新評論無法讀取的bugs fix: 修復waline背景設定無效的bugs fix: 修復twikoo 廣州地域下,page 頁進入post頁,twikoo評論報錯的bugs
This commit is contained in:
@@ -336,6 +336,7 @@ facebook_comments:
|
|||||||
# https://github.com/imaegoo/twikoo
|
# https://github.com/imaegoo/twikoo
|
||||||
twikoo:
|
twikoo:
|
||||||
envId:
|
envId:
|
||||||
|
region:
|
||||||
option:
|
option:
|
||||||
|
|
||||||
# Chat Services
|
# Chat Services
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ script.
|
|||||||
const $countDom = document.getElementById('twikoo-count')
|
const $countDom = document.getElementById('twikoo-count')
|
||||||
const init = () => {
|
const init = () => {
|
||||||
let initData = {
|
let initData = {
|
||||||
|
el: '#twikoo-wrap',
|
||||||
envId: '!{theme.twikoo.envId}',
|
envId: '!{theme.twikoo.envId}',
|
||||||
el: '#twikoo-wrap'
|
region: '!{theme.twikoo.region}'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!{Boolean(option)}) {
|
if (!{Boolean(option)}) {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ script.
|
|||||||
const runTwikoo = () => {
|
const runTwikoo = () => {
|
||||||
twikoo.getRecentComments({
|
twikoo.getRecentComments({
|
||||||
envId: '!{theme.twikoo.envId}',
|
envId: '!{theme.twikoo.envId}',
|
||||||
|
region: '!{theme.twikoo.region}',
|
||||||
pageSize: !{theme.newest_comments.limit},
|
pageSize: !{theme.newest_comments.limit},
|
||||||
includeReply: true
|
includeReply: true
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "3.5.0",
|
"version": "3.5.1",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ if hexo-config('valine.bg')
|
|||||||
background: url(hexo-config('valine.bg')) 100% 100% no-repeat
|
background: url(hexo-config('valine.bg')) 100% 100% no-repeat
|
||||||
|
|
||||||
if hexo-config('waline.bg')
|
if hexo-config('waline.bg')
|
||||||
#waline
|
#waline-wrap
|
||||||
textarea
|
textarea
|
||||||
background: url(hexo-config('waline.bg')) 100% 100% no-repeat
|
background: url(hexo-config('waline.bg')) 100% 100% no-repeat
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user