mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 17:50:54 +08:00
为 Butterfly 添加 HexoPlusPlus_Talk
This commit is contained in:
@@ -50,7 +50,6 @@ link(rel='stylesheet', href=url_for(theme.CDN.main_css))
|
||||
link(rel='stylesheet', href=url_for(theme.CDN.fontawesome) media="print" onload="this.media='all'")
|
||||
|
||||
if theme.hexoplusplus.enable
|
||||
script(src=url_for(theme.hexoplusplus.talk.hpptalk))
|
||||
link(rel='stylesheet', href=url_for(theme.hexoplusplus.talk.hpptalk_css))
|
||||
|
||||
if (theme.snackbar && theme.snackbar.enable)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
})()
|
||||
Reference in New Issue
Block a user