mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
feat: artalk 支持點擊打開大圖
feat: 設置了隨系統而切換淺色和深色模式後,評論和 mermaind 也會跟隨切換顏色 feat: artalk 最新評論,從 artalk 配置讀取頭像 CDN 和默認頭像 fix: 修復代碼塊在未展開時,點擊複製按鈕,無法複製的 bug improvement: 代碼和性能優化 improvement: artalk 獲取評論數,由 LoadCountWidget 改為 loadCountWidget
This commit is contained in:
8
layout/includes/third-party/subtitle.pug
vendored
8
layout/includes/third-party/subtitle.pug
vendored
@@ -38,7 +38,7 @@ case source
|
||||
sub.unshift(data.hitokoto, from)
|
||||
typedJSFn.init(sub)
|
||||
} else {
|
||||
document.getElementById('subtitle').innerHTML = data.hitokoto
|
||||
document.getElementById('subtitle').textContent = data.hitokoto
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -55,7 +55,7 @@ case source
|
||||
sub.unshift(con, from)
|
||||
typedJSFn.init(sub)
|
||||
} else {
|
||||
document.getElementById('subtitle').innerHTML = con
|
||||
document.getElementById('subtitle').textContent = con
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -72,7 +72,7 @@ case source
|
||||
sub.unshift(content)
|
||||
typedJSFn.init(sub)
|
||||
} else {
|
||||
document.getElementById('subtitle').innerHTML = result.data.content
|
||||
document.getElementById('subtitle').textContent = result.data.content
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -86,7 +86,7 @@ case source
|
||||
if (!{effect}) {
|
||||
typedJSFn.init(!{JSON.stringify(subContent)})
|
||||
} else {
|
||||
document.getElementById("subtitle").innerHTML = '!{subContent[0]}'
|
||||
document.getElementById("subtitle").textContent = '!{subContent[0]}'
|
||||
}
|
||||
}
|
||||
typedJSFn.run(subtitleType)
|
||||
Reference in New Issue
Block a user