summaryrefslogtreecommitdiff
path: root/themes/hexo-theme-freemind.bithack/layout/_partial/article.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hexo-theme-freemind.bithack/layout/_partial/article.ejs')
m---------themes/hexo-theme-freemind.bithack0
-rw-r--r--themes/hexo-theme-freemind.bithack/layout/_partial/article.ejs68
2 files changed, 68 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/article.ejs b/themes/hexo-theme-freemind.bithack/layout/_partial/article.ejs
new file mode 100644
index 0000000..af3f3ba
--- /dev/null
+++ b/themes/hexo-theme-freemind.bithack/layout/_partial/article.ejs
@@ -0,0 +1,68 @@
+<%- partial('post/title', {item: item, index: false}) %>
+
+<div class="row <% if (post) { %>post<% } else { %>page<% } %>">
+ <!-- cols -->
+ <% if (post) { %>
+ <div id="top_meta"></div>
+ <div class="col-md-9">
+ <% } else { %>
+ <div class="col-md-12">
+ <% } %>
+
+ <!-- content -->
+ <div class="mypage">
+ <% if (item.description) { %>
+ <div class="alert alert-success description">
+ <i class="fa fa-info-circle"></i> <%- item.description %>
+ </div> <!-- alert -->
+ <% } %>
+
+ <%- item.content %>
+ <%- partial('post/copyright', {page: item}) %>
+ </div>
+
+ <% if (path != 'about/index.html') { %>
+ <span id="<%= url_for(page.path) %>" class="leancloud-visitors view" data-flag-title="<%= page.title %>">
+ <em class="post-meta-item-text"> Page View </em> <i class="leancloud-visitors-count"></i>
+ </span>
+ <% } %>
+ <div>
+ <center>
+
+ <%- partial('post/pagination', {page: item}) %>
+
+ </center>
+ </div>
+
+ <!-- comment -->
+ <!--<%- partial('post/comment', {page: item}) %>-->
+ <% if (theme.valine && theme.valine.appId && theme.valine.appKey){ %>
+ <section id="comments" class="comments">
+ <style>
+ .comments{margin:30px;padding:10px;background:rgb(0, 0, 0)}
+ @media screen and (max-width:800px){.comments{margin:auto;padding:10px;background:#000}}
+ </style>
+ <%- partial('post/valine', {
+ key: post.slug,
+ title: post.title,
+ url: config.url+url_for(post.path)
+ }) %>
+ </section>
+ <% } %>
+ </div> <!-- col-md-9/col-md-12 -->
+
+
+ <% if (post) { %>
+ <div id="side_meta">
+ <%- partial('post/meta', {item: item}) %>
+
+
+ </div>
+
+ <% } %>
+
+</div><!-- row -->
+
+<!--<%- partial('post/comment_footer', {page: item}) %> -->
+
+