mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
remove: 移除 artitalk (如需要,請安裝 hexo-butterfly-artitalk)
remove: 移除 HexoPlusPlus_Talk(如需要,請安裝 hexo-butterfly-hpptalk)
This commit is contained in:
22
_config.yml
22
_config.yml
@@ -788,23 +788,7 @@ note:
|
|||||||
# other
|
# other
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
|
||||||
# Artitalk
|
# Pjax
|
||||||
# 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]
|
|
||||||
# It may contain bugs and unstable, give feedback when you find the bugs.
|
# It may contain bugs and unstable, give feedback when you find the bugs.
|
||||||
# https://github.com/MoOx/pjax
|
# https://github.com/MoOx/pjax
|
||||||
pjax:
|
pjax:
|
||||||
@@ -959,7 +943,3 @@ CDN:
|
|||||||
prismjs_js: https://cdn.jsdelivr.net/npm/prismjs/prism.min.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_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
|
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
|
|
||||||
|
|||||||
@@ -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)
|
|
||||||
}
|
|
||||||
})()
|
|
||||||
@@ -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)
|
|
||||||
}
|
|
||||||
})()
|
|
||||||
@@ -9,10 +9,6 @@ block content
|
|||||||
include includes/page/flink.pug
|
include includes/page/flink.pug
|
||||||
when 'categories'
|
when 'categories'
|
||||||
include includes/page/categories.pug
|
include includes/page/categories.pug
|
||||||
when 'artitalk'
|
|
||||||
include includes/page/artitalk.pug
|
|
||||||
when 'hpptalk'
|
|
||||||
include includes/page/hpptalk.pug
|
|
||||||
default
|
default
|
||||||
include includes/page/default-page.pug
|
include includes/page/default-page.pug
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "3.7.0-b1",
|
"version": "3.7.0-b2",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user