mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
remove: 移除 artitalk (如需要,請安裝 hexo-butterfly-artitalk)
remove: 移除 HexoPlusPlus_Talk(如需要,請安裝 hexo-butterfly-hpptalk)
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
- let option = theme.artitalk.option ? JSON.stringify(theme.artitalk.option) : false
|
||||
|
||||
if top_img === false
|
||||
h1.page-title= page.title
|
||||
|
||||
#artitalk_main
|
||||
script.
|
||||
(()=>{
|
||||
let setting = {
|
||||
appId: '!{theme.artitalk.appId}',
|
||||
appKey: '!{theme.artitalk.appKey}',
|
||||
}
|
||||
|
||||
if (!{Boolean(option)}) {
|
||||
const otherSetting = !{option}
|
||||
setting = Object.assign(setting, otherSetting)
|
||||
}
|
||||
|
||||
const init = () => {
|
||||
new Artitalk(setting)
|
||||
}
|
||||
|
||||
if (typeof Artitalk === 'function') {
|
||||
init()
|
||||
} else {
|
||||
getScript('!{theme.CDN.artitalk}').then(init)
|
||||
}
|
||||
})()
|
||||
@@ -1,38 +0,0 @@
|
||||
- let hpptalkOption = theme.hexoplusplus.talk.option ? JSON.stringify(theme.hexoplusplus.talk.option) : false
|
||||
|
||||
if top_img === false
|
||||
h1.page-title= page.title
|
||||
|
||||
#hpp_talk
|
||||
script.
|
||||
(()=>{
|
||||
let setting = {
|
||||
id: "hpp_talk",
|
||||
domain: '!{theme.hexoplusplus.domain}',
|
||||
limit: !{theme.hexoplusplus.talk.limit},
|
||||
start: !{theme.hexoplusplus.talk.start},
|
||||
}
|
||||
|
||||
if (!{Boolean(hpptalkOption)}) {
|
||||
const otherSetting = !{hpptalkOption}
|
||||
setting = Object.assign(setting, otherSetting)
|
||||
}
|
||||
|
||||
const init = () => {
|
||||
new hpp_talk(setting)
|
||||
}
|
||||
|
||||
const addCss = () => {
|
||||
const link = document.createElement('link')
|
||||
link.rel = 'stylesheet'
|
||||
link.href = '!{url_for(theme.CDN.hpptalk_css)}'
|
||||
document.head.appendChild(link)
|
||||
}
|
||||
|
||||
if (typeof hpp_talk === 'function') {
|
||||
init()
|
||||
} else {
|
||||
addCss()
|
||||
getScript('!{url_for(theme.CDN.hpptalk)}').then(init)
|
||||
}
|
||||
})()
|
||||
Reference in New Issue
Block a user