From 0cea722da8db74ed76643cb1474cda4b5ea83a98 Mon Sep 17 00:00:00 2001 From: Jerry Date: Sat, 13 Feb 2021 00:24:55 +0800 Subject: [PATCH] =?UTF-8?q?remove:=20=E7=A7=BB=E9=99=A4=20artitalk=20?= =?UTF-8?q?=EF=BC=88=E5=A6=82=E9=9C=80=E8=A6=81=EF=BC=8C=E8=AB=8B=E5=AE=89?= =?UTF-8?q?=E8=A3=9D=20hexo-butterfly-artitalk)=20remove:=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=20HexoPlusPlus=5FTalk=EF=BC=88=E5=A6=82=E9=9C=80?= =?UTF-8?q?=E8=A6=81=EF=BC=8C=E8=AB=8B=E5=AE=89=E8=A3=9D=20hexo-butterfly-?= =?UTF-8?q?hpptalk)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 24 ++----------------- layout/includes/page/artitalk.pug | 28 ----------------------- layout/includes/page/hpptalk.pug | 38 ------------------------------- layout/page.pug | 4 ---- package.json | 2 +- 5 files changed, 3 insertions(+), 93 deletions(-) delete mode 100644 layout/includes/page/artitalk.pug delete mode 100644 layout/includes/page/hpptalk.pug 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": {