Files
hexo-theme-butterfly/layout/includes/page/hpptalk.pug
2021-02-09 21:20:55 +08:00

24 lines
526 B
Plaintext

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