feat: 添加 artitalk 説説插件

style: 主題文件分類調正
This commit is contained in:
Jerry
2020-09-16 23:09:34 +08:00
parent 938e7a04c7
commit c7318a3793
16 changed files with 112 additions and 83 deletions

View File

@@ -0,0 +1,24 @@
- let option = theme.artitalk.option ? JSON.stringify(theme.artitalk.option) : false
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}',init)
}
})()