mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 14:22:01 +08:00
Merge branch 'dev' into master
This commit is contained in:
commit
eb823b0a2d
5 files changed
+13
-11
No files matched your search
+2
-2
@@ -23,11 +23,11 @@ script.
|
|||||||
const loadTwikoo = (bool = false) => {
|
const loadTwikoo = (bool = false) => {
|
||||||
if (typeof twikoo === 'object') {
|
if (typeof twikoo === 'object') {
|
||||||
init()
|
init()
|
||||||
bool && $countDom && setTimeout(()=>{getCount()},0)
|
bool && $countDom && setTimeout(getCount,0)
|
||||||
} else {
|
} else {
|
||||||
getScript('!{theme.CDN.twikoo}').then(()=> {
|
getScript('!{theme.CDN.twikoo}').then(()=> {
|
||||||
init()
|
init()
|
||||||
bool && $countDom && setTimeout(()=>{getCount()},0)
|
bool && $countDom && setTimeout(getCount,0)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -41,7 +41,7 @@ script.
|
|||||||
|
|
||||||
if ('!{theme.comments.use[0]}' === 'Valine' || !!{theme.comments.lazyload}) {
|
if ('!{theme.comments.use[0]}' === 'Valine' || !!{theme.comments.lazyload}) {
|
||||||
if (!{theme.comments.lazyload}) btf.loadComment(document.querySelector('#vcomment'),loadValine)
|
if (!{theme.comments.lazyload}) btf.loadComment(document.querySelector('#vcomment'),loadValine)
|
||||||
else setTimeout(() => loadValine(), 0)
|
else setTimeout(loadValine, 0)
|
||||||
} else {
|
} else {
|
||||||
function loadOtherComment () {
|
function loadOtherComment () {
|
||||||
loadValine()
|
loadValine()
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "3.4.0",
|
"version": "3.4.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": {
|
||||||
|
|||||||
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user