blob: ccc57d71867b1b9e804f0e59e5fb8dab9ee462fd [file] [log] [blame]
Tang Cheng60ba8032016-06-20 15:31:17 +08001<article id="<%= post.layout %>-<%= post.slug %>" class="article article-type-<%= post.layout %>" itemscope itemprop="blogPost">
2
3 <header class="article-header">
4 <%- partial('post/title', {class_name: 'article-title'}) %>
5 </header>
6
7 <div class="article-meta">
8 <%- partial('post/date', {class_name: 'article-date', date_format: null}) %>
9 <% if (post.author){ %><div class="article-author"><%= post.author %></div><% } %>
10 <%- partial('post/category') %>
11 </div>
12 <div class="article-inner">
13
14 <div class="article-entry" itemprop="articleBody">
15 <% if (post.excerpt && index){ %>
16 <%- post.excerpt %>
17 <% if (theme.excerpt_link){ %>
18 <p class="article-more-link">
19 <a class="btn btn-primary" href="<%- url_for(post.path) %>#more"><%= theme.excerpt_link %></a>
20 </p>
21 <% } %>
22 <% } else { %>
23 <%- post.content %>
24 <% } %>
25 </div>
26
27 <% if (!(post.excerpt && index)){ %>
28 <%- partial('post/gallery') %>
29 <% } %>
30
31 <footer class="article-footer">
32 <a data-url="<%- post.permalink %>" data-id="<%= post._id %>" class="article-share-link">
33 <i class="fa fa-share"></i> Share
34 </a>
35 <% if (post.comments && config.disqus_shortname){ %>
36 <a href="<%- post.permalink %>#disqus_thread" class="article-comment-link">
37 <i class="fa fa-comment"></i> Comments
38 </a>
39 <% } %>
40 <%- partial('post/tag') %>
41 </footer>
42 </div>
43 <% if (!index){ %>
44 <%- partial('post/nav') %>
45 <% } %>
46</article>
47
48<% if (!index && post.comments && config.disqus_shortname){ %>
49<section id="comments">
50 <div id="disqus_thread">
51 <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
52 </div>
53</section>
54<% } %>