remove: 移除 artitalk (如需要,請安裝 hexo-butterfly-artitalk)

remove: 移除 HexoPlusPlus_Talk(如需要,請安裝 hexo-butterfly-hpptalk)
This commit is contained in:
Jerry
2021-02-13 00:24:55 +08:00
Unverified
parent f3f0666b26
commit 0cea722da8
5 changed files with 3 additions and 93 deletions

View File

@@ -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)
}
})()

View File

@@ -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)
}
})()