You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
6.2 KiB

6 years ago
<article id="<%= post.layout %>-<%= post.slug %>" class="post white-box article-type-<%= post.layout %>" itemscope itemprop="blogPost">
<section class='meta'>
6 years ago
<h1 class="title">
<% if(post.title){ %>
<%= post.title %>
<% } else if (post.date) { %>
6 years ago
<%= date(post.date, config.date_format) %>
6 years ago
<% } %>
</h1>
6 years ago
<time>
6 years ago
<%= date(post.date, config.date_format) %>&nbsp;&nbsp;
6 years ago
<i class="fa fa-eye fa-fw" aria-hidden="true"></i>&nbsp;<span id="busuanzi_value_page_pv"><i class="fa fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span>
6 years ago
</time>
<%- partial('categories',{post:post}) %>
</section>
7 years ago
6 years ago
<section class="article typo">
<div class="article-entry" itemprop="articleBody">
<%- post.content %>
</div>
6 years ago
6 years ago
<% if (post.tags && post.tags && post.tags.each) { %>
6 years ago
<div class="article-tags tags">
<% post.tags.each(function(item){ %>
6 years ago
<a href="<%- url_for(item.path) %>"><i class="fa fa-tag fa-fw" aria-hidden="true"></i>&nbsp;<%=item.name %></a>
6 years ago
<%})%>
</div>
<% } %>
7 years ago
6 years ago
<% if(post.prev || post.next){ %>
6 years ago
<div class="prev-next">
6 years ago
<% if(post.prev){ %>
6 years ago
<section class="prev" >
<span class="art-item-left">
6 years ago
<h6><i class="fa fa-chevron-left" aria-hidden="true"></i>&nbsp;上一篇</h6>
6 years ago
<h4>
<a href="<%=url_for(post.prev.path)%>" rel="prev" title="<%=post.prev.title%>">
6 years ago
<% if(post.prev.title){ %>
<%= post.prev.title %>
<% } else if (post.prev.date) { %>
<%= date(post.prev.date, config.date_format) %>
<% } %>
6 years ago
</a>
</h4>
<% if (post.prev.tags && post.prev.tags.length) { %>
6 years ago
<h6 class="tags">
6 years ago
<% post.prev.tags.each(function(item){ %>
6 years ago
<i class="fa fa-tag fa-fw"></i><%=item.name %>
6 years ago
<%})%>
6 years ago
</h6>
6 years ago
<% } %>
</span>
</section>
6 years ago
<% } %>
<% if(post.next){ %>
6 years ago
<section class="next">
<span class="art-item-right" aria-hidden="true">
6 years ago
<h6>下一篇&nbsp;<i class="fa fa-chevron-right" aria-hidden="true"></i></h6>
6 years ago
<h4>
<a href="<%=url_for(post.next.path)%>" rel="prev" title="<%=post.next.title%>">
6 years ago
<% if(post.next.title){ %>
<%= post.next.title %>
<% } else if (post.next.date) { %>
<%= date(post.next.date, config.date_format) %>
<% } %>
6 years ago
</a>
</h4>
<% if (post.next.tags && post.next.tags.length) { %>
6 years ago
<h6 class="tags">
6 years ago
<% post.next.tags.each(function(item){ %>
6 years ago
<i class="fa fa-tag fa-fw"></i><%=item.name %>
6 years ago
<%})%>
6 years ago
</h6>
6 years ago
<% } %>
</span>
</section>
6 years ago
<%} %>
</div>
<%} %>
7 years ago
6 years ago
</section>
7 years ago
6 years ago
</article>
7 years ago
6 years ago
<br>
6 years ago
<!-- 显示推荐文章和评论 -->
<% if (post && ((config.recommended_posts && config.recommended_posts.autoDisplay == false && post.recommended_posts != false) || (post.comments && (config.disqus_shortname || config.livere_shortname || config.valine)) )) { %>
6 years ago
<article class="post white-box comments">
6 years ago
<section class="article typo">
6 years ago
<% if (config.recommended_posts && config.recommended_posts.autoDisplay == false && post.recommended_posts != false) { %>
6 years ago
<%- partial('post/recommended_posts', {page: post, site: site}) %>
<% } %>
6 years ago
6 years ago
<% if (post.comments) { %>
6 years ago
<% if (config.disqus_shortname) { %>
6 years ago
<h4><i class="fa fa-comments fa-fw" aria-hidden="true"></i>&nbsp;Disqus评论</h4>
6 years ago
<section id="comments">
6 years ago
<div id="disqus_thread">
无法加载评论系统,请确保您的网络能够正常访问 <a href="https://disqus.com">Disqus</a> 。
6 years ago
</div>
</section>
<% } %>
6 years ago
<% if (config.livere_uid){ %>
6 years ago
<h4><i class="fa fa-comments fa-fw" aria-hidden="true"></i>&nbsp;LiveRe评论</h4>
6 years ago
<section id="comments">
6 years ago
<div id="lv-container" data-id="city" data-uid="<%= config.livere_uid %>">
6 years ago
<noscript>为正常使用来必力评论功能请激活JavaScript</noscript>
6 years ago
</div>
6 years ago
</section>
<% } %>
6 years ago
<% if (config.valine){ %>
<% if (config.valine.enable && config.valine.appId && config.valine.appKey){ %>
6 years ago
<h4><i class="fa fa-comments fa-fw" aria-hidden="true"></i>&nbsp;Valine评论</h4>
6 years ago
<section id="comments">
<div id="valine_container" class="valine_thread">
</i><i class="fa fa-spinner fa-spin fa-fw"></i>
</div>
</section>
6 years ago
<script src="//unpkg.com/valine/dist/Valine.min.js"></script>
6 years ago
<% } %>
<% } %>
<% } %>
6 years ago
6 years ago
</section>
</article>
<% } %>
6 years ago
7 years ago
<script>
6 years ago
window.subData = {
title: '<%= post.title %>',
tools: true
}
7 years ago
</script>