mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 22:32:00 +08:00
breaking changes: 移除 waline 的 emojiCDN 和 emojiMaps 配置
fix: 修復 升級到 waline 1.x 而出現的 bug
This commit is contained in:
1 parent
f0eaf2d8b0
commit
54c6a509c7
5 files changed
+5
-13
No files matched your search
@@ -331,7 +331,6 @@ valine:
|
|||||||
waline:
|
waline:
|
||||||
serverURL: # Waline server address url
|
serverURL: # Waline server address url
|
||||||
avatar: monsterid # gravatar style https://zh-tw.gravatar.com/site/implement/images/#default-image
|
avatar: monsterid # gravatar style https://zh-tw.gravatar.com/site/implement/images/#default-image
|
||||||
emojiCDN: # emoji CDN
|
|
||||||
bg: # waline background
|
bg: # waline background
|
||||||
visitor: false
|
visitor: false
|
||||||
option:
|
option:
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ script.
|
|||||||
function loadWaline () {
|
function loadWaline () {
|
||||||
function initWaline () {
|
function initWaline () {
|
||||||
let initData = {
|
let initData = {
|
||||||
el: '#waline-wrap',
|
el: null,
|
||||||
serverURL: '!{theme.waline.serverURL}',
|
serverURL: '!{theme.waline.serverURL}',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
- let emojiMaps = '""'
|
|
||||||
if site.data.waline
|
|
||||||
- emojiMaps = JSON.stringify(site.data.waline)
|
|
||||||
|
|
||||||
script.
|
script.
|
||||||
function loadWaline () {
|
function loadWaline () {
|
||||||
function initWaline () {
|
function initWaline () {
|
||||||
@@ -10,8 +6,6 @@ script.
|
|||||||
serverURL: '!{theme.waline.serverURL}',
|
serverURL: '!{theme.waline.serverURL}',
|
||||||
avatar: '#{theme.waline.avatar}',
|
avatar: '#{theme.waline.avatar}',
|
||||||
path: location.pathname,
|
path: location.pathname,
|
||||||
emojiCDN: '#{theme.waline.emojiCDN}',
|
|
||||||
emojiMaps: !{emojiMaps},
|
|
||||||
visitor: #{theme.waline.visitor},
|
visitor: #{theme.waline.visitor},
|
||||||
dark: '[data-theme="dark"]'
|
dark: '[data-theme="dark"]'
|
||||||
}, !{JSON.stringify(theme.waline.option)}))
|
}, !{JSON.stringify(theme.waline.option)}))
|
||||||
|
|||||||
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user