breaking changes: 移除 waline 的 emojiCDN 和 emojiMaps 配置

fix: 修復 升級到 waline 1.x 而出現的 bug
This commit is contained in:
Jerry
2021-05-31 22:23:14 +08:00
parent de4037106b
commit c214da4515
5 changed files with 4 additions and 12 deletions

View File

@@ -1,7 +1,3 @@
- let emojiMaps = '""'
if site.data.waline
- emojiMaps = JSON.stringify(site.data.waline)
script.
function loadWaline () {
function initWaline () {
@@ -10,8 +6,6 @@ script.
serverURL: '!{theme.waline.serverURL}',
avatar: '#{theme.waline.avatar}',
path: location.pathname,
emojiCDN: '#{theme.waline.emojiCDN}',
emojiMaps: !{emojiMaps},
visitor: #{theme.waline.visitor},
dark: 'html[data-theme="dark"]'
}, !{JSON.stringify(theme.waline.option)}))