|
|
@ -7,10 +7,13 @@ |
|
|
|
<%= date(post.date, config.date_format) %> |
|
|
|
<%= date(post.date, config.date_format) %> |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
</h1> |
|
|
|
</h1> |
|
|
|
<time> |
|
|
|
<time class="time"> |
|
|
|
<i class="fa fa-calendar-alt fa-fw" aria-hidden="true"></i> <%= date(post.date, config.date_format) %> |
|
|
|
<i class="fas fa-calendar-alt fa-fw" aria-hidden="true"></i> |
|
|
|
<i class="fa fa-eye fa-fw" aria-hidden="true"></i> <span id="busuanzi_value_page_pv"><i class="fa fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span> |
|
|
|
<%= date(post.date, config.date_format) %> |
|
|
|
</time> |
|
|
|
</time> |
|
|
|
|
|
|
|
<div class="browse"><i class="fas fa-eye fa-fw" aria-hidden="true"></i> |
|
|
|
|
|
|
|
<span id="busuanzi_value_page_pv"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span> |
|
|
|
|
|
|
|
</div> |
|
|
|
<%- partial('categories',{post:post}) %> |
|
|
|
<%- partial('categories',{post:post}) %> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
|
|
|
|
|
|
|
@ -20,26 +23,31 @@ |
|
|
|
<%- post.content %> |
|
|
|
<%- post.content %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<% if (post.tags && post.tags && post.tags.each) { %> |
|
|
|
|
|
|
|
<div class="article-tags tags"> |
|
|
|
|
|
|
|
<% post.tags.each(function(item){ %> |
|
|
|
|
|
|
|
<a href="<%- url_for(item.path) %>"><i class="fa fa-tag fa-fw" aria-hidden="true"></i> <%=item.name %></a> |
|
|
|
|
|
|
|
<%})%> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
<section class='meta'> |
|
|
|
<section class='meta'> |
|
|
|
<time itemprop="dateUpdated" datetime="<%- moment(post.updated).format() %>" content="<%- date(post.updated, config.date_format) %>"> |
|
|
|
<time class="time" itemprop="dateUpdated" datetime="<%- moment(post.updated).format() %>" content="<%- date(post.updated, config.date_format) %>"> |
|
|
|
<i class="fa fa-edit fa-fw" aria-hidden="true"></i> |
|
|
|
<i class="fas fa-edit fa-fw" aria-hidden="true"></i> |
|
|
|
本文最后更新于:<%- date(post.updated, config.date_format) %> |
|
|
|
本文最后更新于:<%- date(post.updated, config.date_format) %> |
|
|
|
</time> |
|
|
|
</time> |
|
|
|
|
|
|
|
<% if (post.tags && post.tags && post.tags.each) { %> |
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
var items = []; |
|
|
|
|
|
|
|
post.tags.each(function(item){ |
|
|
|
|
|
|
|
items.push('<a class="tag" href="'+url_for(item.path)+'">' + item.name + '</a>'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
<div class="article-tags tags"> |
|
|
|
|
|
|
|
<i class="fas fa-tags fa-fw" aria-hidden="true"></i> |
|
|
|
|
|
|
|
<%- items.join(', ') %> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<% } %> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
|
|
|
|
|
|
|
|
<% if(post.prev || post.next){ %> |
|
|
|
<% if(post.prev || post.next){ %> |
|
|
|
<div class="prev-next"> |
|
|
|
<div class="prev-next"> |
|
|
|
<% if(post.prev){ %> |
|
|
|
<% if(post.prev){ %> |
|
|
|
<section class="prev" > |
|
|
|
<section class="prev"> |
|
|
|
<span class="art-item-left"> |
|
|
|
<span class="art-item-left"> |
|
|
|
<h6><i class="fa fa-chevron-left" aria-hidden="true"></i> 上一篇</h6> |
|
|
|
<h6><i class="fas fa-chevron-left" aria-hidden="true"></i> 上一篇</h6> |
|
|
|
<h4> |
|
|
|
<h4> |
|
|
|
<a href="<%=url_for(post.prev.path)%>" rel="prev" title="<%=post.prev.title%>"> |
|
|
|
<a href="<%=url_for(post.prev.path)%>" rel="prev" title="<%=post.prev.title%>"> |
|
|
|
<% if(post.prev.title){ %> |
|
|
|
<% if(post.prev.title){ %> |
|
|
@ -49,11 +57,16 @@ |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</h4> |
|
|
|
</h4> |
|
|
|
<% if (post.prev.tags && post.prev.tags.length) { %> |
|
|
|
<% if (post.prev.tags && post.prev.tags && post.prev.tags.each) { %> |
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
var items = []; |
|
|
|
|
|
|
|
post.prev.tags.each(function(item){ |
|
|
|
|
|
|
|
items.push('<a class="tag" href="'+url_for(item.path)+'">' + item.name + '</a>'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
%> |
|
|
|
<h6 class="tags"> |
|
|
|
<h6 class="tags"> |
|
|
|
<% post.prev.tags.each(function(item){ %> |
|
|
|
<i class="fas fa-tags fa-fw" aria-hidden="true"></i> |
|
|
|
<i class="fa fa-tag fa-fw"></i><%=item.name %> |
|
|
|
<%- items.join(', ') %> |
|
|
|
<%})%> |
|
|
|
|
|
|
|
</h6> |
|
|
|
</h6> |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -62,7 +75,7 @@ |
|
|
|
<% if(post.next){ %> |
|
|
|
<% if(post.next){ %> |
|
|
|
<section class="next"> |
|
|
|
<section class="next"> |
|
|
|
<span class="art-item-right" aria-hidden="true"> |
|
|
|
<span class="art-item-right" aria-hidden="true"> |
|
|
|
<h6>下一篇 <i class="fa fa-chevron-right" aria-hidden="true"></i></h6> |
|
|
|
<h6>下一篇 <i class="fas fa-chevron-right" aria-hidden="true"></i></h6> |
|
|
|
<h4> |
|
|
|
<h4> |
|
|
|
<a href="<%=url_for(post.next.path)%>" rel="prev" title="<%=post.next.title%>"> |
|
|
|
<a href="<%=url_for(post.next.path)%>" rel="prev" title="<%=post.next.title%>"> |
|
|
|
<% if(post.next.title){ %> |
|
|
|
<% if(post.next.title){ %> |
|
|
@ -72,11 +85,16 @@ |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</h4> |
|
|
|
</h4> |
|
|
|
<% if (post.next.tags && post.next.tags.length) { %> |
|
|
|
<% if (post.next.tags && post.next.tags && post.next.tags.each) { %> |
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
var items = []; |
|
|
|
|
|
|
|
post.next.tags.each(function(item){ |
|
|
|
|
|
|
|
items.push('<a class="tag" href="'+url_for(item.path)+'">' + item.name + '</a>'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
%> |
|
|
|
<h6 class="tags"> |
|
|
|
<h6 class="tags"> |
|
|
|
<% post.next.tags.each(function(item){ %> |
|
|
|
<i class="fas fa-tags fa-fw" aria-hidden="true"></i> |
|
|
|
<i class="fa fa-tag fa-fw"></i><%=item.name %> |
|
|
|
<%- items.join(', ') %> |
|
|
|
<%})%> |
|
|
|
|
|
|
|
</h6> |
|
|
|
</h6> |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -103,7 +121,7 @@ |
|
|
|
<% if (post.comments) { %> |
|
|
|
<% if (post.comments) { %> |
|
|
|
|
|
|
|
|
|
|
|
<% if (config.disqus_shortname) { %> |
|
|
|
<% if (config.disqus_shortname) { %> |
|
|
|
<h4><i class="fa fa-comments fa-fw" aria-hidden="true"></i> Disqus评论</h4> |
|
|
|
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i> Disqus评论</h4> |
|
|
|
<section id="comments"> |
|
|
|
<section id="comments"> |
|
|
|
<div id="disqus_thread"> |
|
|
|
<div id="disqus_thread"> |
|
|
|
⚠️ 无法加载评论系统,请确保您的网络能够正常访问 <a href="https://disqus.com">Disqus</a> 。 |
|
|
|
⚠️ 无法加载评论系统,请确保您的网络能够正常访问 <a href="https://disqus.com">Disqus</a> 。 |
|
|
@ -112,7 +130,7 @@ |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
|
|
<% if (config.livere_uid){ %> |
|
|
|
<% if (config.livere_uid){ %> |
|
|
|
<h4><i class="fa fa-comments fa-fw" aria-hidden="true"></i> LiveRe评论</h4> |
|
|
|
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i> LiveRe评论</h4> |
|
|
|
<section id="comments"> |
|
|
|
<section id="comments"> |
|
|
|
<div id="lv-container" data-id="city" data-uid="<%= config.livere_uid %>"> |
|
|
|
<div id="lv-container" data-id="city" data-uid="<%= config.livere_uid %>"> |
|
|
|
<noscript>为正常使用来必力评论功能请激活JavaScript</noscript> |
|
|
|
<noscript>为正常使用来必力评论功能请激活JavaScript</noscript> |
|
|
@ -122,13 +140,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
<% if (config.valine){ %> |
|
|
|
<% if (config.valine){ %> |
|
|
|
<% if (config.valine.enable && config.valine.appId && config.valine.appKey){ %> |
|
|
|
<% if (config.valine.enable && config.valine.appId && config.valine.appKey){ %> |
|
|
|
<h4><i class="fa fa-comments fa-fw" aria-hidden="true"></i> Valine评论</h4> |
|
|
|
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i> Valine评论</h4> |
|
|
|
<div class="subtitle"> |
|
|
|
<div class="subtitle"> |
|
|
|
<h6><b>文明评论,请勿灌水。</b>为了便于区分和接收回复提醒,请您在留言时填写一下<b>昵称</b>和<b>邮箱</b>。</h6> |
|
|
|
<h6><b>文明评论,请勿灌水。</b>为了便于区分和接收回复提醒,请您在留言时填写一下<b>昵称</b>和<b>邮箱</b>。</h6> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<section id="comments"> |
|
|
|
<section id="comments"> |
|
|
|
<div id="valine_container" class="valine_thread"> |
|
|
|
<div id="valine_container" class="valine_thread"> |
|
|
|
</i><i class="fa fa-spinner fa-spin fa-fw"></i> |
|
|
|
</i><i class="fas fa-spinner fa-spin fa-fw"></i> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script> |
|
|
|
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script> |
|
|
|