diff --git a/_config.yml b/_config.yml index 9fcc6c8..771dd2f 100644 --- a/_config.yml +++ b/_config.yml @@ -788,23 +788,7 @@ note: # other # -------------------------------------- -# Artitalk -# see https://artitalk.js.org/ -artitalk: - appId: - appKey: - option: - -# HexoPlusPlus Talk -# see https://hexoplusplus.js.org -hexoplusplus: - domain: - talk: - limit: 10 - start: 0 - option: - -# Pjax [Beta] +# Pjax # It may contain bugs and unstable, give feedback when you find the bugs. # https://github.com/MoOx/pjax pjax: @@ -958,8 +942,4 @@ CDN: # Prism.js prismjs_js: https://cdn.jsdelivr.net/npm/prismjs/prism.min.js prismjs_lineNumber_js: https://cdn.jsdelivr.net/npm/prismjs/plugins/line-numbers/prism-line-numbers.min.js - prismjs_autoloader: https://cdn.jsdelivr.net/npm/prismjs/plugins/autoloader/prism-autoloader.min.js - - artitalk: https://cdn.jsdelivr.net/npm/artitalk - hpptalk: https://cdn.jsdelivr.net/gh/HexoPlusPlus/HexoPlusPlus@latest/talk_user.js - hpptalk_css: https://cdn.jsdelivr.net/gh/HexoPlusPlus/HexoPlusPlus@latest/talk.css + prismjs_autoloader: https://cdn.jsdelivr.net/npm/prismjs/plugins/autoloader/prism-autoloader.min.js \ No newline at end of file diff --git a/layout/includes/page/artitalk.pug b/layout/includes/page/artitalk.pug deleted file mode 100644 index c2d1dde..0000000 --- a/layout/includes/page/artitalk.pug +++ /dev/null @@ -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) - } - })() \ No newline at end of file diff --git a/layout/includes/page/hpptalk.pug b/layout/includes/page/hpptalk.pug deleted file mode 100644 index 5969f73..0000000 --- a/layout/includes/page/hpptalk.pug +++ /dev/null @@ -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) - } - })() \ No newline at end of file diff --git a/layout/page.pug b/layout/page.pug index 0f2733c..2fb8b7e 100644 --- a/layout/page.pug +++ b/layout/page.pug @@ -9,10 +9,6 @@ block content include includes/page/flink.pug when 'categories' include includes/page/categories.pug - when 'artitalk' - include includes/page/artitalk.pug - when 'hpptalk' - include includes/page/hpptalk.pug default include includes/page/default-page.pug diff --git a/package.json b/package.json index 029de26..0b419cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "3.7.0-b1", + "version": "3.7.0-b2", "description": "A Simple and Card UI Design theme for Hexo", "main": "package.json", "scripts": {