Compare commits

..

5 Commits
3.7.5 ... 3.7.8

7 changed files with 13 additions and 15 deletions

View File

@@ -331,7 +331,6 @@ valine:
waline:
serverURL: # Waline server address url
avatar: monsterid # gravatar style https://zh-tw.gravatar.com/site/implement/images/#default-image
emojiCDN: # emoji CDN
bg: # waline background
visitor: false
option:

View File

@@ -6,11 +6,13 @@
var pageToc = page.toc === true || page.toc === false ? page.toc : theme.toc.enable
var showToc = is_post() && theme.aside.enable && pageToc && (toc(page.content) !== '' || page.encrypt == true )
let titleVal = pageTitle.replace(/'/ig,"\\'")
-
script#config-diff.
var GLOBAL_CONFIG_SITE = {
title: '!{pageTitle}',
title: '!{titleVal}',
isPost: !{is_post()},
isHome: !{is_home()},
isHighlightShrink: !{isHighlightShrink},

View File

@@ -3,7 +3,7 @@ script.
function loadWaline () {
function initWaline () {
let initData = {
el: '#waline-wrap',
el: null,
serverURL: '!{theme.waline.serverURL}',
}

View File

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

View File

@@ -53,11 +53,10 @@ script.
const getComment = () => {
const loadWaline = () => {
Waline.Widget.RecentComments({
el: '#card-newest-comments .aside-list',
serverURL: '!{theme.waline.serverURL}',
count: !{theme.newest_comments.limit}
}).then(comments => {
const walineArray = comments.map(function (e) {
}).then(res => {
const walineArray = res.comments.map(e => {
return {
'content': changeContent(e.comment),
'avatar': getIcon(e.QQAvatar,e.mail),

View File

@@ -1,6 +1,6 @@
{
"name": "hexo-theme-butterfly",
"version": "3.7.5",
"version": "3.7.8",
"description": "A Simple and Card UI Design theme for Hexo",
"main": "package.json",
"scripts": {

View File

@@ -185,6 +185,9 @@ no-beautify()
else
no-beautify()
> :last-child
margin-bottom: 0 !important
#post
.tag_share
.post-meta