summaryrefslogtreecommitdiff
path: root/themes/hexo-theme-freemind.bithack/layout/_partial/post/meta.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hexo-theme-freemind.bithack/layout/_partial/post/meta.ejs')
m---------themes/hexo-theme-freemind.bithack0
-rw-r--r--themes/hexo-theme-freemind.bithack/layout/_partial/post/meta.ejs44
2 files changed, 44 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/meta.ejs b/themes/hexo-theme-freemind.bithack/layout/_partial/post/meta.ejs
new file mode 100644
index 0000000..9e4dc8c
--- /dev/null
+++ b/themes/hexo-theme-freemind.bithack/layout/_partial/post/meta.ejs
@@ -0,0 +1,44 @@
+<div class="col-md-3" id="post_meta">
+
+ <!-- date -->
+ <% if (item.date) { %>
+ <div class="meta-widget">
+ <i class="fa fa-clock-o"></i>
+ <%= item.date.format(config.date_format) %>
+ </div>
+ <% } %>
+
+ <!-- categories -->
+ <% if (item.categories && item.categories.length ) { %>
+ <div class="meta-widget">
+ <a data-toggle="collapse" data-target="#categorys"><i class="fa fa-folder"></i></a>
+ <ul id="categorys" class="tag_box list-unstyled collapse in">
+ <%- partial('category') %>
+ </ul>
+ </div>
+ <% } %>
+
+ <!-- tags -->
+ <% if(item.tags && item.tags.length ){ %>
+ <div class="meta-widget">
+ <a data-toggle="collapse" data-target="#tags"><i class="fa fa-tags"></i></a>
+ <ul id="tags" class="tag_box list-unstyled collapse in">
+ <%- partial('tag') %>
+ </ul>
+ </div>
+ <% } %>
+
+ <!-- toc -->
+ <div class="meta-widget">
+ <% if(item.toc){ %>
+ <a data-toggle="collapse" data-target="#toc"><i class="fa fa-bars"></i></a>
+ <div id="toc" class="toc collapse in">
+ <span class="toc-title">Contents</span>
+ <%- toc(item.content, {class: "toc-article", list_number:false}) %>
+ </div>
+ <% } %>
+ </div>
+
+ <hr>
+
+</div><!-- col-md-3 -->