Compare commits

...

1 Commits
3.8.2 ... 3.8.3

Author SHA1 Message Date
Jerry
101cb45b90 fix: Waline 評論系統 設置 avatarCDN 無效的 bug 2021-07-30 01:00:32 +08:00
2 changed files with 8 additions and 5 deletions

View File

@@ -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()

View File

@@ -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": {