为 Butterfly 添加 HexoPlusPlus_Talk

This commit is contained in:
Open-super
2021-02-09 21:20:55 +08:00
parent 1683998280
commit 092e6c5e25
3 changed files with 23 additions and 10 deletions

View File

@@ -3,9 +3,22 @@ if top_img === false
#hpp_talk
script.
new hpp_talk({
id:"hpp_talk",
domain: "!{theme.hexoplusplus.domain}",
(()=>{
let setting = {
id: "hpp_talk",
domain: '!{theme.hexoplusplus.domain}',
limit: !{theme.hexoplusplus.talk.limit},
start: !{theme.hexoplusplus.talk.start}
});
start: !{theme.hexoplusplus.talk.start},
themecss: '!{theme.hexoplusplus.talk.themecss}',
}
const init = () => {
new hpp_talk(setting)
}
if (typeof hpp_talk === 'function') {
init()
} else {
getScript('!{theme.hexoplusplus.talk.hpptalk}').then(init)
}
})()