Permalink
Browse files

style: tag cloud page list_categories

Displays only top level categories.
只列出第一层级的分类。

https://hexo.io/docs/helpers.html#list_categories

Closes #4
  • Loading branch information...
MOxFIVE committed Dec 1, 2015
1 parent 7ddd09b commit 8f00171371af03682c774049d00b0172f8ccbbcf
Showing with 3 additions and 4 deletions.
  1. +3 −4 layout/_partial/page.ejs
@@ -35,7 +35,9 @@
<!-- Tag Cloud Page -->
<hr>
<br>
<%- list_categories() %>
<%- list_categories({
depth: 1,
}) %>
<div class="tags">
<%- tagcloud({
min_font: 16,
@@ -88,8 +90,5 @@
border-bottom: 2px solid black;
text-decoration: none;
}
.category-list-child {
display: none;
}
</style>
<% } %>

0 comments on commit 8f00171

Please sign in to comment.