提交 08bbc5a4 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

fix(v1.2.4, v1.2.3): Solve that can't start when update to v1.2.3/4

上级 4f29f6c4
......@@ -65,7 +65,7 @@ header:
url:
# Mask effect of the top background image.
mask:
enable: false
enable: true
# Opacity of mask (value: 0 ~ 1).
opacity: 0.5
......@@ -662,8 +662,8 @@ tag_cloud:
start_color: '#a4d8fa'
end_color: '#49b1f5'
# Size for tag.
min_size: 24
max_size: 34
min_size: 20
max_size: 30
# Maximum number of tags displayed. Change it if you have more than 200 tags.
max_amount: 200
......
......@@ -60,21 +60,21 @@ aside#sidebar
span= _p("sidebar.subscribe")
if theme.menu
- var menuArchives = _.trim(_.get(theme.menu.archives.split("||"), "[0]"))
- var menuCategories = _.trim(_.get(theme.menu.categories.split("||"), "[0]"))
- var menuTags = _.trim(_.get(theme.menu.tags.split("||"), "[0]"))
div.sidebar-state
if theme.menu.archives
- var menuArchives = _.trim(_.get(theme.menu.archives.split("||"), "[0]"))
span.sidebar-state-item.sidebar-state-posts
a(href=menuArchives)
div.sidebar-state-item-count= site.posts.length
div.sidebar-state-item-name= _p("sidebar.archives")
if theme.menu.categories
- var menuCategories = _.trim(_.get(theme.menu.categories.split("||"), "[0]"))
span.sidebar-state-item.sidebar-state-categories
a(href=menuCategories)
div.sidebar-state-item-count= site.categories.length
div.sidebar-state-item-name= _p("sidebar.categories")
if theme.menu.tags
- var menuTags = _.trim(_.get(theme.menu.tags.split("||"), "[0]"))
span.sidebar-state-item.sidebar-state-tags
a(href=menuTags)
div.sidebar-state-item-count= site.tags.length
......
......@@ -183,11 +183,18 @@ $avatar-animation = 'avatar-' + convert(hexo-config('author.avatar.animation') |
&-email > a
color: $sidebar-feed-email-color
&:hover
color: darken($sidebar-feed-email-color, 20%)
&-rss > a
color: $sidebar-feed-rss-color
&:hover
color: darken($sidebar-feed-rss-color, 20%)
.sidebar-state
padding: .5rem 0
text-align: center
&-item
display: inline-block
......@@ -198,22 +205,34 @@ $avatar-animation = 'avatar-' + convert(hexo-config('author.avatar.animation') |
&:last-child
margin: 0
border: 0
border-width: 0
padding: 0
&-count
font-weight: $font-weight-bold
color: $black-dark
a
display: block
&-posts > a
color: $sidebar-state-post-color
&:hover
color: darken($sidebar-state-post-color, 30%)
&-categories > a
color: $sidebar-state-category-color
&:hover
color: darken($sidebar-state-category-color, 30%)
&-tags > a
color: $sidebar-state-tag-color
&:hover
color: darken($sidebar-state-tag-color, 30%)
.sidebar-cc
padding-top: .5rem
text-align: center
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册