mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-03 22:22:00 +08:00
Merge branch 'dev'
This commit is contained in:
commit
736cd75cda
6 files changed
+12
-10
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
script.
|
script.
|
||||||
(() = {
|
(() => {
|
||||||
const abcjsInit = () => {
|
const abcjsInit = () => {
|
||||||
const abcjsFn = () => {
|
const abcjsFn = () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
+4
-2
@@ -1,5 +1,5 @@
|
|||||||
script.
|
script.
|
||||||
(() => {
|
(() => {
|
||||||
const getCommentUrl = () => {
|
const getCommentUrl = () => {
|
||||||
const eleGroup = document.querySelectorAll('#recent-posts .article-title')
|
const eleGroup = document.querySelectorAll('#recent-posts .article-title')
|
||||||
let urlArray = []
|
let urlArray = []
|
||||||
@@ -18,7 +18,9 @@ script.
|
|||||||
includeReply: false
|
includeReply: false
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
document.querySelectorAll('#recent-posts .twikoo-count').forEach((item,index) => {
|
document.querySelectorAll('#recent-posts .twikoo-count').forEach((item,index) => {
|
||||||
item.textContent = res[index].count
|
if (res[index]) {
|
||||||
|
item.textContent = res[index].count
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}).catch(function (err) {
|
}).catch(function (err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ hr.custom-hr
|
|||||||
.comment-headline
|
.comment-headline
|
||||||
i.fas.fa-comments.fa-fw
|
i.fas.fa-comments.fa-fw
|
||||||
span= ' ' + _p('comment')
|
span= ' ' + _p('comment')
|
||||||
|
|
||||||
if theme.comments.use.length > 1
|
if theme.comments.use.length > 1
|
||||||
.comment-switch
|
.comment-switch
|
||||||
span.first-comment=defaultComment
|
span.first-comment=defaultComment
|
||||||
|
|||||||
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user