article.ejs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <article id="<%= post.layout %>-<%= post.slug %>" class="article article-type-<%= post.layout %>" itemscope itemprop="blogPost">
  2. <div class="article-meta">
  3. <%- partial('post/date', {class_name: 'article-date', date_format: null}) %>
  4. <%- partial('post/category') %>
  5. </div>
  6. <div class="article-inner">
  7. <%- partial('post/gallery') %>
  8. <% if (post.link || post.title){ %>
  9. <header class="article-header">
  10. <%- partial('post/title', {class_name: 'article-title'}) %>
  11. </header>
  12. <% } %>
  13. <div class="article-entry" itemprop="articleBody">
  14. <% if (post.excerpt && index){ %>
  15. <%- post.excerpt %>
  16. <% if (theme.excerpt_link){ %>
  17. <p class="article-more-link">
  18. <a href="<%- url_for(post.path) %>#more"><%= theme.excerpt_link %></a>
  19. </p>
  20. <% } %>
  21. <% } else { %>
  22. <%- post.content %>
  23. <% } %>
  24. </div>
  25. <footer class="article-footer">
  26. <a data-url="<%- post.permalink %>" data-id="<%= post._id %>" class="article-share-link"><%= __('share') %></a>
  27. <% if (post.comments && config.disqus_shortname){ %>
  28. <a href="<%- post.permalink %>#disqus_thread" class="article-comment-link"><%= __('comment') %></a>
  29. <% } %>
  30. <%- partial('post/tag') %>
  31. </footer>
  32. </div>
  33. <% if (!index){ %>
  34. <%- partial('post/nav') %>
  35. <% } %>
  36. </article>
  37. <% if (!index && post.comments && config.disqus_shortname){ %>
  38. <section id="comments">
  39. <div id="disqus_thread">
  40. <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  41. </div>
  42. </section>
  43. <% } %>