summaryrefslogtreecommitdiff
path: root/themes/hexo-theme-freemind.bithack/layout/_partial/post/title.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hexo-theme-freemind.bithack/layout/_partial/post/title.ejs')
m---------themes/hexo-theme-freemind.bithack0
-rw-r--r--themes/hexo-theme-freemind.bithack/layout/_partial/post/title.ejs25
2 files changed, 25 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/title.ejs b/themes/hexo-theme-freemind.bithack/layout/_partial/post/title.ejs
new file mode 100644
index 0000000..b3e79d0
--- /dev/null
+++ b/themes/hexo-theme-freemind.bithack/layout/_partial/post/title.ejs
@@ -0,0 +1,25 @@
+<% if (item.link) { %>
+ <% if (item.title){ %>
+ <h1 class="title"><a href="<%- item.link %>" target="_blank"><%= item.title %></a></h1>
+ <% } else { %>
+ <h1 class="title"><a href="<%- item.link %>" target="_blank"><%= item.link %></a></h1>
+ <% } %>
+<% } else { %>
+ <% if (index) { %>
+ <!-- display as entry -->
+<div class="row">
+ <div class="col-md-8">
+ <h3 class="title">
+ <a href="<%- config.root %><%- item.path %>" <% if(item.description) { %>title="<%= item.description %>"<% } %>><%= item.title %></a>
+ </h3>
+ </div>
+ <div class="col-md-4">
+ <div class="date">post @ <%= item.date.format(config.date_format) %> </div>
+ </div>
+ </div>
+ <% } else { %>
+ <div class="page-header">
+ <h1><% if (item.icon) { %> <i class="<%= item.icon %>"></i> <% } %> <% if (item.page_title) { %><%= item.page_title %><% }else{ %><%= item.title %><% } %></h1>
+ </div>
+ <% } %>
+<% } %>