Skip to content

Commit

Permalink
[categories][sidebar]Make categories display as hierarchical structur…
Browse files Browse the repository at this point in the history
…e in sidebar
  • Loading branch information
CatherineLiyuankun committed Jan 31, 2019
1 parent adb7551 commit e7a7cd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
14 changes: 7 additions & 7 deletions themes/zilan/layout/_widget/category.ejs
Expand Up @@ -5,13 +5,13 @@
<h5><a href="<%= config.root %>categories/">CATEGORORY</a></h5>
<% if (site.categories && site.categories.length){ %>
<div class="article-category" id="categories">
<%- list_categories(site.categories, {
show_count: true,
class: 'category-list',
style: 'none',
separator: '',
depth: 2
}) %>
<%- list_categories(site.categories, {
orderby: 'name',
show_count: true,
class: 'category',
style: 'list',
depth: 3
}) %>
</div>
<% } %>
</section>
Expand Down
7 changes: 1 addition & 6 deletions themes/zilan/source/css/widget.styl
Expand Up @@ -32,9 +32,4 @@
max-height: 200px
max-width: 200px

#categories
ul.category-list-child li >a:before
content: "\f0da"
font-family: font-icon
padding-right: 4px
color:color-grey
// #categories

0 comments on commit e7a7cd1

Please sign in to comment.