|
@@ -1,61 +0,0 @@
|
|
-<article id="<%= post.layout %>-<%= post.slug %>" class="article article-type-<%= post.layout %>" itemscope itemprop="blogPost">
|
|
|
|
- <div class="article-inner">
|
|
|
|
- <% if (post.banner){ %>
|
|
|
|
- <%- partial('post/banner') %>
|
|
|
|
- <% } %>
|
|
|
|
- <%- partial('post/gallery') %>
|
|
|
|
- <% if (post.link || post.title){ %>
|
|
|
|
- <header class="article-header">
|
|
|
|
- <%- partial('post/title', {class_name: 'article-title'}) %>
|
|
|
|
- <div class="article-meta">
|
|
|
|
- <%- partial('post/date', {class_name: 'article-date', date_format: null}) %>
|
|
|
|
- <%- partial('post/category') %>
|
|
|
|
- </div>
|
|
|
|
- </header>
|
|
|
|
- <% } %>
|
|
|
|
- <div class="article-entry" itemprop="articleBody">
|
|
|
|
- <% if (post.excerpt && index){ %>
|
|
|
|
- <%- post.excerpt %>
|
|
|
|
- <% if (theme.excerpt_link){ %>
|
|
|
|
- <p class="article-more-link">
|
|
|
|
- <a href="<%- url_for(post.path) %>#more"><%= theme.excerpt_link %></a>
|
|
|
|
- </p>
|
|
|
|
- <% } %>
|
|
|
|
- <% } else { %>
|
|
|
|
- <% if (!index && post.toc){ %>
|
|
|
|
- <div id="toc" class="toc-article">
|
|
|
|
- <strong class="toc-title"><%= __('article.catalogue') %></strong>
|
|
|
|
- <%- toc(post.content) %>
|
|
|
|
- </div>
|
|
|
|
-<% } %>
|
|
|
|
- <%- post.content %>
|
|
|
|
- <% } %>
|
|
|
|
- </div>
|
|
|
|
- <footer class="article-footer">
|
|
|
|
- <a data-url="<%- post.permalink %>" data-id="<%= post._id %>" class="article-share-link"><%= __('article.share') %></a>
|
|
|
|
- <% if (post.comments && config.disqus_shortname){ %>
|
|
|
|
- <a href="<%- post.permalink %>#disqus_thread" class="article-comment-link"><%= __('article.comments') %></a>
|
|
|
|
- <% } else if (post.comments && config.duoshuo_shortname){ %>
|
|
|
|
- <a href="<%- post.permalink %>#ds-thread" class="article-comment-link"><%= __('article.comments') %></a>
|
|
|
|
- <% } %>
|
|
|
|
- <%- partial('post/tag') %>
|
|
|
|
- </footer>
|
|
|
|
- </div>
|
|
|
|
- <% if (!index){ %>
|
|
|
|
- <%- partial('post/nav') %>
|
|
|
|
- <% } %>
|
|
|
|
-</article>
|
|
|
|
-
|
|
|
|
-<% if (!index && post.comments && config.disqus_shortname){ %>
|
|
|
|
-<section id="comments">
|
|
|
|
- <div id="disqus_thread">
|
|
|
|
- <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
|
|
- </div>
|
|
|
|
-</section>
|
|
|
|
-<% } else if (!index && post.comments && config.duoshuo_shortname){ %>
|
|
|
|
- <section id="comments">
|
|
|
|
- <div id="ds-thread" class="ds-thread" data-thread-key="<%- post.permalink %>" data-title="<%- post.title %>" data-url="<%- post.permalink %>">
|
|
|
|
- <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by DuoShuo.</a></noscript>
|
|
|
|
- </div>
|
|
|
|
- </section>
|
|
|
|
-<% } %>
|
|
|