summaryrefslogtreecommitdiff
path: root/themes/hexo-theme-freemind.bithack/layout/_partial/article.ejs
blob: af3f3ba200f30ba930fe0e3aaa746ee1bb0ee567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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}) %> -->