hexo-theme-jsimple/layout/_widget/common-article.ejs
2017-04-18 15:20:14 +08:00

37 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="main-inner">
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="post-header">
<div class="post-author clearfix">
<a class="avatar fleft" href="<%= post.authorLink %>" target="_blank">
<img width="48" src="<%= post.avatar %>" alt="avatar"/>
</a>
<p><span class="label">作者</span>
<a href="<%= post.authorAbout %>" target="_blank"><%= post.author %></a>
<span title="最后编辑于<%= date(post.date) %>"><%= date(post.date) %></span>
</p>
<p><%= post.authorDesc %></p>
</div>
<h2 class="post-title"><%- post.title %></h2>
<div class="post-meta">
本文总共<%- strip_html(post.content).length %>个字 | 您是第<span id="busuanzi_value_page_pv"><i class="fa fa-spinner fa-spin"></i></span>位看到它们的小伙伴
</div>
</div>
<div class="post-content markdown-body">
<%- post.content %>
</div>
<div class="post-tool">
<a class="btn-weixin-mp" href="javascript:void(0);" data-cid="52" title="95">
<i class="fa fa-mobile" aria-hidden="true"></i> 打包
</a>
</div>
<% if (post.tags){ %>
<div class="post-tags"><%= __('tags') %>
<% post.tags.each(function(tag){ %>
<a href="<%- url_for(tag.path) %>"><%= tag.name %></a>
<% }) %>
</div>
<% } %>
</article>
<%- partial('_partial/comments', {post: post}) %>
</div>
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>