summaryrefslogtreecommitdiff
path: root/themes/hexo-theme-freemind.bithack/layout/_partial/post/category.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hexo-theme-freemind.bithack/layout/_partial/post/category.ejs')
m---------themes/hexo-theme-freemind.bithack0
-rw-r--r--themes/hexo-theme-freemind.bithack/layout/_partial/post/category.ejs9
2 files changed, 9 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/_partial/post/category.ejs b/themes/hexo-theme-freemind.bithack/layout/_partial/post/category.ejs
new file mode 100644
index 0000000..f14b88f
--- /dev/null
+++ b/themes/hexo-theme-freemind.bithack/layout/_partial/post/category.ejs
@@ -0,0 +1,9 @@
+ <%
+ var cats = [];
+ item.categories.forEach(function(cat){
+ cats.push('<li><a href="' + config.root + cat.path + '">' + cat.name + '<span>' + cat.length + '</span></a></li>');
+ });
+ %>
+ <li>
+ <%- cats.join(' ') %>
+ </li>