<% if (post.thumbnail) { %>
<% if (post.thumbnail) { %>
<% if (theme.lazyload === true) { %>
<% } else { %>
<% } %>
<% } %>
<% } %>
<%= post.title %>
<% if (post.podcast && theme.podcast) { %>
<%
const duration = post.podcast.duration;
const hour = Math.floor(duration / 3600);
const minute = Math.floor((duration / 60) % 60);
const second = Math.floor(duration % 60);
const viewstr = hour + ':' + String(minute).padStart(2, '0') + ':' + String(second).padStart(2, '0');
%>
<%- viewstr %>
<%- date(post.date, theme.timeformat) %>
<% } else { %>
<%- date(post.date, theme.timeformat) %>
<% } %>
<% if (post.tags) { %>
<% (post.tags).forEach(function(item) { %>
# <%= item.name %>
<% }); %>
<% } %>
<% if (post.excerpt) { %>
<%- post.excerpt %>
<% } else { %>
<%- post.content %>
<% } %>