Skip to content

Commit edd99f9

Browse files
committed
modify category style
1 parent 645cb9f commit edd99f9

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ index_widgets:
8282

8383
# widget behavior
8484
archive_type: 'monthly'
85+
# 分类是否显示文章数量
8586
show_count: false
8687

8788
# 标签云TagClound

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ index_widgets:
4545

4646
# widget behavior
4747
archive_type: 'monthly'
48-
show_count: false
48+
# 分类是否显示文章数量
49+
show_count: true
4950

5051
# 标签云TagClound
5152
# 如果启动,则标签云颜色为随机

layout/_widget/category.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<% if (category || index && site.categories.length){ %>
22
<div class="widget-wrap">
33
<h3 class="widget-title categories"><%= __('categories') %></h3>
4-
<div class="widget">
5-
<%- list_categories({show_count: theme.show_count}) %>
4+
<div class="widget" id="categories">
5+
<%- list_categories({show_count: theme.show_count,depth: 2}) %>
66
</div>
77
</div>
88
<% } %>

source/css/_partial/sidebar-aside.styl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,9 @@
4444
ul, ol, dl
4545
ul, ol, dl
4646
margin-left: 15px
47-
list-style: disc
47+
// list-style: disc
48+
#categories
49+
ul.category-list-child li >a:before
50+
content: "\f0da"
51+
@extend $widget-block
52+
color:color-grey

source/css/_partial/sidebar.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ else
1414
ul, ol
1515
margin: 0 20px
1616
ul
17-
list-style: disc
17+
// list-style: disc
1818
ol
1919
list-style: decimal
2020

0 commit comments

Comments
 (0)