summaryrefslogtreecommitdiff
path: root/themes/hexo-theme-freemind.bithack/layout/tags.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hexo-theme-freemind.bithack/layout/tags.ejs')
m---------themes/hexo-theme-freemind.bithack0
-rw-r--r--themes/hexo-theme-freemind.bithack/layout/tags.ejs53
2 files changed, 53 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/tags.ejs b/themes/hexo-theme-freemind.bithack/layout/tags.ejs
new file mode 100644
index 0000000..15bc388
--- /dev/null
+++ b/themes/hexo-theme-freemind.bithack/layout/tags.ejs
@@ -0,0 +1,53 @@
+<!-- title -->
+<div class="page-header">
+ <h1><i class="fa fa-tags"></i> <%= page.title %></h1>
+</div>
+
+<div class="row page">
+
+ <% if (theme.widgets.length) { %>
+ <div class="col-md-9">
+ <% } else { %>
+ <div class="col-md-12">
+ <% } %>
+
+<div id="top_search"></div>
+
+<% if (site.tags.length){ %>
+ <div class="widget">
+ <ul class="tag_box inline list-unstyled">
+ <% site.tags.sort('name').each(function(item){ %>
+ <li><a href="#<%= item.name %>"><%= item.name %><span><%= item.posts.length %></span></a></li>
+ <% }); %>
+ </ul>
+ </div>
+
+<div class="archive">
+ <% site.tags.sort('name').each(function(item){ %>
+
+ <h4 class="archive-ul show" data-toggle="collapse" id="<%= item.name %>" data-target="#modal-<%= item.name %>"> <%= item.name %> <b class="caret"></b></h4>
+ <ul id="modal-<%= item.name %>" class="collapse in">
+ <% site.posts.sort('date', -1).forEach(function(it){ %>
+ <% if (it.tags.length >= 1) { %>
+ <% it.tags.data.forEach(function(data){ %>
+ <% if (data._id == item._id) { %>
+ <li class="listing-item"><a href="<%= config.root %><%= it.path %>" <% if (it.description) { %> title="<%= it.description %>" <% } %>><%= it.title %></a></li>
+ <% } %>
+ <% }); %>
+ <% } %>
+ <% }); %>
+
+ </ul>
+ <% }); %>
+ </ul>
+</div>
+
+<% } %>
+
+</div> <!-- col-md-9 -->
+
+ <% if (theme.widgets.length) { %>
+ <%- partial('_partial/sidebar') %>
+ <% } %>
+
+</div> <!-- row-fluid --> \ No newline at end of file