Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  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. <!-- table of content -->
  23. <% if (post.toc == true){ %>
  24. <div id="toc" class="toc-article">
  25. <div class="toc-title">目录</div>
  26. <%- toc(page.content, {class: 'post-toc', list_number: false}) %>
  27. </div>
  28. <% } %>
  29. <%- post.content %>
  30. <% } %>
  31. </div>
  32. <footer class="article-footer">
  33. <!--
  34. <a data-url="<%- post.permalink %>" data-id="<%= post._id %>" class="article-share-link"><%= __('share') %></a>
  35. -->
  36.  
  37. <div style="float: right">
  38. <a title="分享到新浪微博" class="article-share-weibo" target="_blank" href="http://service.weibo.com/share/share.php?url=<%- post.permalink %>"></a>
  39. <a title="分享到 QQ 空间" class="article-share-qq" target="_blank" href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<%- post.permalink %>"></a>
  40. <a title="分享到微信" class="article-share-wechat" href="javascript:void(0)" onclick="window.open('http://s.jiathis.com/qrcode.php?url=<%- post.permalink %>','QRCODE','width=200,height=200,directories=0,location=0,toolbar=0,menubar=0,resizable=0,status=0,scrollbars=0,titlebar=0');return false;"></a>
  41. </div>
  42.  
  43. <% if (post.comments && config.disqus_shortname){ %>
  44. <a href="<%- post.permalink %>#disqus_thread" class="article-comment-link"><%= __('comment') %></a>
  45. <% } %>
  46. <%- partial('post/tag') %>
  47.  
  48. </footer>
  49. </div>
  50. <% if (!index){ %>
  51. <%- partial('post/nav') %>
  52. <% } %>
  53. </article>
  54.  
  55. <% if (!index && post.comments && config.disqus_shortname){ %>
  56. <section id="comments">
  57. <div id="disqus_thread">
  58. <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  59. </div>
  60. </section>
  61. <% } %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement