Compare commits

..

3 Commits
3.8.1 ... 3.8.3

6 changed files with 16 additions and 13 deletions

View File

@@ -461,9 +461,9 @@ google_adsense:
# -------------------------------------- # --------------------------------------
site_verification: site_verification:
# - name: google_site_verification # - name: google-site-verification
# content: xxxxxx # content: xxxxxx
# - name: baidu_site_verification # - name: baidu-site-verification
# content: xxxxxxx # content: xxxxxxx
# Beautify/Effect (美化/效果) # Beautify/Effect (美化/效果)

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.1", "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": {

View File

@@ -9,7 +9,7 @@
// index // index
&.full_page &.full_page
min-height: $index_top_img_height height: $index_top_img_height
background-attachment: fixed background-attachment: fixed
#site-info #site-info
@@ -70,7 +70,7 @@
// page // page
&.not-home-page &.not-home-page
min-height: 20rem height: 20rem
+maxWidth768() +maxWidth768()
height: 14rem height: 14rem
@@ -86,7 +86,7 @@
// post // post
&.post-bg &.post-bg
min-height: 20rem height: 20rem
+maxWidth768() +maxWidth768()
height: 18rem height: 18rem
@@ -118,7 +118,7 @@
&.not-top-img &.not-top-img
margin-bottom: .5rem margin-bottom: .5rem
min-height: 60px height: 60px
background: 0 background: 0
#nav #nav

View File

@@ -1,7 +1,7 @@
#body-wrap #body-wrap
display: flex display: flex
flex-direction: column flex-direction: column
height: 100vh min-height: 100vh
.layout .layout
display: flex display: flex

View File

@@ -33,7 +33,7 @@ $font-color = #1F2D3D
$rem = 20px $rem = 20px
$text-line-height = 2 $text-line-height = 2
$web-bg = hexo-config('background') && unquote(hexo-config('background')) $web-bg = hexo-config('background') && unquote(hexo-config('background'))
$index_top_img_height = hexo-config('index_top_img_height') ? convert(hexo-config('index_top_img_height')) : 100% $index_top_img_height = hexo-config('index_top_img_height') ? convert(hexo-config('index_top_img_height')) : 100vh
$index_site_info_top = hexo-config('index_site_info_top') ? convert(hexo-config('index_site_info_top')) : 43% $index_site_info_top = hexo-config('index_site_info_top') ? convert(hexo-config('index_site_info_top')) : 43%
// Global color & SVG // Global color & SVG
$light-blue = $theme-color $light-blue = $theme-color