mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 19:40:55 +08:00
新增HexoPlusPlus的说说
This commit is contained in:
16
_config.yml
16
_config.yml
@@ -795,6 +795,22 @@ artitalk:
|
|||||||
appKey:
|
appKey:
|
||||||
option:
|
option:
|
||||||
|
|
||||||
|
# HexoPlusPlus All home
|
||||||
|
# see https://hexoplusplus.js.org
|
||||||
|
hexoplusplus:
|
||||||
|
enable: false
|
||||||
|
domain:
|
||||||
|
talk:
|
||||||
|
hpptalk: https://cdn.jsdelivr.net/gh/HexoPlusPlus/HexoPlusPlus@1.1.0/talk_user.js # Here should be the limit must be written version number
|
||||||
|
hpptalk_css: https://cdn.jsdelivr.net/gh/HexoPlusPlus/HexoPlusPlus@1.1.0/talk.css # Here should be the limit must be written version number
|
||||||
|
limit: 0
|
||||||
|
start: 0
|
||||||
|
themecss: # Default config: https://cdn.jsdelivr.net/gh/HexoPlusPlus/CDN@master/theme/hpp_user_talk/Butter_Fly_1.css
|
||||||
|
option:
|
||||||
|
|
||||||
|
info:
|
||||||
|
enable: false
|
||||||
|
|
||||||
# Pjax [Beta]
|
# 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
|
||||||
|
|||||||
@@ -49,6 +49,10 @@ if (theme.pwa && theme.pwa.enable)
|
|||||||
link(rel='stylesheet', href=url_for(theme.CDN.main_css))
|
link(rel='stylesheet', href=url_for(theme.CDN.main_css))
|
||||||
link(rel='stylesheet', href=url_for(theme.CDN.fontawesome) media="print" onload="this.media='all'")
|
link(rel='stylesheet', href=url_for(theme.CDN.fontawesome) media="print" onload="this.media='all'")
|
||||||
|
|
||||||
|
if theme.hexoplusplus.enable
|
||||||
|
script(src=url_for(theme.hexoplusplus.talk.hpptalk))
|
||||||
|
link(rel='stylesheet', href=url_for(theme.hexoplusplus.talk.hpptalk_css))
|
||||||
|
|
||||||
if (theme.snackbar && theme.snackbar.enable)
|
if (theme.snackbar && theme.snackbar.enable)
|
||||||
link(rel='stylesheet', href=url_for(theme.CDN.snackbar_css) media="print" onload="this.media='all'")
|
link(rel='stylesheet', href=url_for(theme.CDN.snackbar_css) media="print" onload="this.media='all'")
|
||||||
|
|
||||||
|
|||||||
12
layout/includes/page/hpptalk.pug
Normal file
12
layout/includes/page/hpptalk.pug
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
if top_img === false
|
||||||
|
h1.page-title= page.title
|
||||||
|
|
||||||
|
#hpp_talk
|
||||||
|
script.
|
||||||
|
|
||||||
|
new hpp_talk({
|
||||||
|
id:"hpp_talk",
|
||||||
|
domain: "!{theme.hexoplusplus.domain}",
|
||||||
|
limit: !{theme.hexoplusplus.talk.limit},
|
||||||
|
start: !{theme.hexoplusplus.talk.start}
|
||||||
|
});
|
||||||
@@ -11,6 +11,8 @@ block content
|
|||||||
include includes/page/categories.pug
|
include includes/page/categories.pug
|
||||||
when 'artitalk'
|
when 'artitalk'
|
||||||
include includes/page/artitalk.pug
|
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.6.2",
|
"version": "3.6.3",
|
||||||
"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