<% if(is_home() || is_category() || is_archive() || is_tag() || page.index) { var isPostList = true; } else { var isPostList = false; } var hasMeta = false; %>
<% if(post.music && post.music.enable != false){ %> <%- 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: post.music.volume?post.music.volume:'0.7', aplayer_autoplay: post.music.autoplay?true:false }) %> <% } %> <% if(post.thumbnail && post.thumbnail.length){ %> <% } %>
<% if(isPostList){ %>

<% if(post.title){ %> <%- post.title %> <% } else if (post.date) { %> <%= date(post.date, config.date_format) %> <% } %>

<% } else { %> <% if(page.title && (!page.meta || page.meta.title != false)){ %>

<%- page.title %>

<% hasMeta = true %> <% } %> <% } %>
<% if(config.author && (!post.meta || post.meta.author != false)){ %> <% } %> <% if(post.date && (!post.meta || post.meta.date != false)){ %> <% } %> <% 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; }); %> <% } %> <% } %> <% if(!isPostList && (!post.meta || post.meta.counter != false)){ %> <% if (theme.busuanzi == true) { %> <% } %> <% } %> <% if(isPostList && post.top && (!post.meta || post.meta.top != false)){ %>
<%- post.top != true ? post.top : __('post.top') %>
<% } %>
<% if( hasMeta ){ %>
<% } %>