summaryrefslogtreecommitdiff
path: root/themes/hexo-theme-freemind.bithack/layout/_widget/category.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hexo-theme-freemind.bithack/layout/_widget/category.ejs')
m---------themes/hexo-theme-freemind.bithack0
-rw-r--r--themes/hexo-theme-freemind.bithack/layout/_widget/category.ejs10
2 files changed, 10 insertions, 0 deletions
diff --git a/themes/hexo-theme-freemind.bithack b/themes/hexo-theme-freemind.bithack
deleted file mode 160000
-Subproject db335ebdc14507c7687084da084a56eb3d003f1
diff --git a/themes/hexo-theme-freemind.bithack/layout/_widget/category.ejs b/themes/hexo-theme-freemind.bithack/layout/_widget/category.ejs
new file mode 100644
index 0000000..19f8526
--- /dev/null
+++ b/themes/hexo-theme-freemind.bithack/layout/_widget/category.ejs
@@ -0,0 +1,10 @@
+<% if (site.categories.length){ %>
+ <div class="widget">
+ <h4><%= __('categories') %></h4>
+ <ul class="tag_box inline list-unstyled">
+ <% site.categories.sort('name').each(function(item){ %>
+ <li><a href="<%- config.root %><%- item.path %>"><%= item.name %><span><%= item.posts.length %></span></a></li>
+ <% }); %>
+ </ul>
+ </div>
+<% } %> \ No newline at end of file