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.

64 lines
2.7 KiB

6 years ago
<% if(is_home() || is_category() || is_archive() || is_tag()) {
var isPostList = true;
} else {
var isPostList = false;
} %>
<section class='meta'>
6 years ago
<% if((!isPostList && post.music && post.music.enable != false) || (isPostList && post.music && post.music.enable != false)){ %>
6 years ago
<%- partial('../_third-party/aplayer',
{aplayer_theme: '', aplayer_mini: true, aplayer_mode: 'circulation',
aplayer_server: post.music.server, aplayer_type: post.music.type, aplayer_id: post.music.id,
aplayer_volume: '0.7', aplayer_autoplay: false }) %>
6 years ago
<% } %>
<div class="meta" id="header-meta">
<% if(isPostList){ %>
<h2 class="title">
<a href="<%- url_for(post.path) %>">
<% if(post.title){ %>
<%= post.title %>
<% } else if (post.date) { %>
<%= date(post.date, config.date_format) %>
<% } %>
</a>
</h2>
<% } else { %>
<% if(post.title){ %>
<h1 class="title"><%= post.title %></h1>
<% } else if (post.date) { %>
<h1 class="title"><%= date(post.date, config.date_format) %></h1>
<% } %>
<% } %>
6 years ago
<% if(post.date && (!post.meta || post.meta.date != false)){ %>
6 years ago
<time class="metatag time">
<i class="fas fa-calendar-alt fa-fw" aria-hidden="true"></i>&nbsp;<%= date(post.date, config.date_format) %>
6 years ago
</time>
<% } %>
6 years ago
<% if(post.categories && (!post.meta || post.meta.categories != false)){ %>
6 years ago
<%- partial('categories',{post:post}) %>
<% } %>
6 years ago
<% if(!isPostList && theme.services && (!post.meta || post.meta.counter != false)){ %>
6 years ago
<% if (theme.services.leancloud_visitors == true && config.leancloud_visitors && config.leancloud_visitors.app_id && config.leancloud_visitors.app_key) { %>
6 years ago
<div class="metatag browse leancloud"><i class="fas fa-eye fa-fw" aria-hidden="true"></i>
6 years ago
<span id="<%= url_for(page.path) %>" class="leancloud_visitors" data-flag-title="<%= page.title %>">
6 years ago
&nbsp;<span class="leancloud-visitors-count"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span>
6 years ago
</span>
</div>
6 years ago
<% } else if (theme.services.busuanzi == true) { %>
6 years ago
<div class="metatag browse busuanzi"><i class="fas fa-eye fa-fw" aria-hidden="true"></i>
&nbsp;<span id="busuanzi_value_page_pv"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span>
6 years ago
</div>
<% } %>
<% } %>
6 years ago
<% if(isPostList && post.top && (!post.meta || post.meta.top != false)){ %>
<div class="metatag top">
6 years ago
<i class="fas fa-angle-double-up fa-fw" aria-hidden="true"></i>&nbsp;<%- post.top != true ? post.top : __('post.top') %>
</div>
<% } %>
6 years ago
</div>
</section>