mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 22:17:06 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
101cb45b90 |
11
layout/includes/third-party/comments/waline.pug
vendored
11
layout/includes/third-party/comments/waline.pug
vendored
@@ -1,14 +1,17 @@
|
|||||||
|
- const { serverURL, avatar, avatarCDN, visitor, option } = theme.waline
|
||||||
|
|
||||||
script.
|
script.
|
||||||
function loadWaline () {
|
function loadWaline () {
|
||||||
function initWaline () {
|
function initWaline () {
|
||||||
const waline = new Waline(Object.assign({
|
const waline = new Waline(Object.assign({
|
||||||
el: '#waline-wrap',
|
el: '#waline-wrap',
|
||||||
serverURL: '!{theme.waline.serverURL}',
|
serverURL: '!{serverURL}',
|
||||||
avatar: '#{theme.waline.avatar}',
|
avatar: '#{avatar}',
|
||||||
|
avatarCDN: '!{avatarCDN || "https://sdn.geekzu.org/avatar/"}',
|
||||||
path: location.pathname,
|
path: location.pathname,
|
||||||
visitor: #{theme.waline.visitor},
|
visitor: !{visitor},
|
||||||
dark: 'html[data-theme="dark"]'
|
dark: 'html[data-theme="dark"]'
|
||||||
}, !{JSON.stringify(theme.waline.option)}))
|
}, !{JSON.stringify(option)}))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof Waline === 'function') initWaline()
|
if (typeof Waline === 'function') initWaline()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "3.8.2",
|
"version": "3.8.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