|
|
|
@ -29,35 +29,62 @@ |
|
|
|
|
<% } %> |
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
<% if(post.date && (!post.meta || post.meta.date != false)){ %> |
|
|
|
|
<time class="metatag time"> |
|
|
|
|
<i class="fas fa-calendar-alt fa-fw" aria-hidden="true"></i> <%= date(post.date, config.date_format) %> |
|
|
|
|
</time> |
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
<% if(post.categories && (!post.meta || post.meta.categories != false)){ %> |
|
|
|
|
<%- partial('categories',{post:post}) %> |
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
<% if(!isPostList && theme.services && (!post.meta || post.meta.counter != false)){ %> |
|
|
|
|
<% if (theme.services.leancloud_visitors == true && config.leancloud_visitors && config.leancloud_visitors.app_id && config.leancloud_visitors.app_key) { %> |
|
|
|
|
<div class="metatag browse leancloud"><i class="fas fa-eye fa-fw" aria-hidden="true"></i> |
|
|
|
|
<span id="<%= url_for(page.path) %>" class="leancloud_visitors" data-flag-title="<%= page.title %>"> |
|
|
|
|
<span class="leancloud-visitors-count"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span> |
|
|
|
|
</span> |
|
|
|
|
<div class='new-meta-box'> |
|
|
|
|
<% if(config.author && (!post.meta || post.meta.author != false)){ %> |
|
|
|
|
<div class='new-meta-item author'> |
|
|
|
|
<a href="<%- url_for(config.url) %>"> |
|
|
|
|
<i class="fas fa-user" aria-hidden="true"></i> |
|
|
|
|
<%- config.author %> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<% } else if (theme.services.busuanzi == true) { %> |
|
|
|
|
<div class="metatag browse busuanzi"><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> |
|
|
|
|
<% } %> |
|
|
|
|
<% if(post.date && (!post.meta || post.meta.date != false)){ %> |
|
|
|
|
<div class="new-meta-item date"> |
|
|
|
|
<a class='notlink'> |
|
|
|
|
<i class="fas fa-calendar-alt" aria-hidden="true"></i> |
|
|
|
|
<%= date(post.date, config.date_format) %> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<% } %> |
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
<% if(isPostList && post.top && (!post.meta || post.meta.top != false)){ %> |
|
|
|
|
<div class="metatag top"> |
|
|
|
|
<i class="fas fa-angle-double-up fa-fw" aria-hidden="true"></i> <%- post.top != true ? post.top : __('post.top') %> |
|
|
|
|
</div> |
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
<% if(post.categories && (!post.meta || post.meta.categories != false)){ %> |
|
|
|
|
<% if (post.categories && post.categories.length && post.categories.forEach){ %> |
|
|
|
|
<% |
|
|
|
|
var cats = []; |
|
|
|
|
var path; |
|
|
|
|
post.categories.forEach(function(cat){ |
|
|
|
|
cats.push(cat.name); |
|
|
|
|
path = cat.path; |
|
|
|
|
}); |
|
|
|
|
%> |
|
|
|
|
<div class='new-meta-item category'> |
|
|
|
|
<a href='<%- url_for(path) %>'> |
|
|
|
|
<i class="fas fa-folder-open" aria-hidden="true"></i> |
|
|
|
|
<%- cats.join(' / ') %> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<% } %> |
|
|
|
|
<% } %> |
|
|
|
|
<% if(!isPostList && theme.services && (!post.meta || post.meta.counter != false)){ %> |
|
|
|
|
<% if (theme.services.busuanzi == true) { %> |
|
|
|
|
<div class="new-meta-item browse busuanzi"> |
|
|
|
|
<a class='notlink'> |
|
|
|
|
<i class="fas fa-eye" aria-hidden="true"></i> |
|
|
|
|
<span id="busuanzi_value_page_pv"> |
|
|
|
|
<i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i> |
|
|
|
|
</span> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<% } %> |
|
|
|
|
<% } %> |
|
|
|
|
<% if(isPostList && post.top && (!post.meta || post.meta.top != false)){ %> |
|
|
|
|
<div class="new-meta-item top-post"> |
|
|
|
|
<a class='notlink'> |
|
|
|
|
<i class="fas fa-angle-double-up" aria-hidden="true"></i> |
|
|
|
|
<%- post.top != true ? post.top : __('post.top') %> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<% } %> |
|
|
|
|
</div> |
|
|
|
|
<hr> |
|
|
|
|
</div> |
|
|
|
|
</section> |
|
|
|
|