2020-06-07 02:05:53 +00:00
|
|
|
|
<article
|
|
|
|
|
id="<%= post.layout %>-<%= post.slug %>"
|
|
|
|
|
class="article article-type-<%= post.layout %>"
|
|
|
|
|
itemscope
|
|
|
|
|
itemprop="blogPost"
|
|
|
|
|
data-scroll-reveal
|
|
|
|
|
>
|
2019-12-03 11:37:44 +00:00
|
|
|
|
<div class="article-inner">
|
|
|
|
|
<% if (post.link || post.title){ %>
|
|
|
|
|
<header class="article-header">
|
|
|
|
|
<%- partial('post/title', {class_name: 'article-title'}) %>
|
|
|
|
|
</header>
|
2020-06-07 02:05:53 +00:00
|
|
|
|
<% } %> <% if (index || is_post()) { %>
|
2019-12-03 11:37:44 +00:00
|
|
|
|
<div class="article-meta">
|
2020-06-07 02:05:53 +00:00
|
|
|
|
<%- partial('post/date', {class_name: 'article-date', date_format: null})
|
|
|
|
|
%> <%- partial('post/category') %> <% if(theme.word_count &&
|
|
|
|
|
theme.word_count.enable && !post.no_word_count){%> <%-
|
|
|
|
|
partial('post/word') %> <% } %>
|
2019-12-03 11:37:44 +00:00
|
|
|
|
</div>
|
2020-06-07 02:05:53 +00:00
|
|
|
|
<% } %> <% if (theme.toc && is_post()){ %> <%- partial('post/tocbot') %> <%
|
|
|
|
|
} %> <% if (theme.excerpt_all&&index){ %> <% }else{ %>
|
2019-12-03 11:37:44 +00:00
|
|
|
|
<div class="article-entry" itemprop="articleBody">
|
2020-06-07 02:05:53 +00:00
|
|
|
|
<%- partial('post/justifiedGallery') %> <%- partial('post/gallery') %> <%
|
|
|
|
|
if (post.excerpt && index){ %> <%- post.excerpt %> <% if
|
|
|
|
|
(theme.excerpt_link){ %>
|
|
|
|
|
<a class="article-more-link" href="<%- url_for(post.path) %>"
|
|
|
|
|
><%= theme.excerpt_link %></a
|
|
|
|
|
>
|
|
|
|
|
<% } %> <% } else { %> <%- post.content %> <% } %>
|
2020-02-07 04:42:33 +00:00
|
|
|
|
<!-- reward -->
|
2020-06-07 02:05:53 +00:00
|
|
|
|
<% if ((theme.reward_type === 2 || (theme.reward_type === 1 &&
|
|
|
|
|
post.reward)) && !index && !post.no_reward){ %>
|
2020-08-04 13:04:59 +00:00
|
|
|
|
<div id="reword-out">
|
|
|
|
|
<div id="reward-btn">
|
|
|
|
|
<%= __('post.reward') %>
|
|
|
|
|
</div>
|
2020-01-07 06:05:02 +00:00
|
|
|
|
</div>
|
|
|
|
|
<% } %>
|
2019-12-03 11:37:44 +00:00
|
|
|
|
</div>
|
2020-02-12 04:50:12 +00:00
|
|
|
|
<% } %>
|
2020-02-07 04:42:33 +00:00
|
|
|
|
|
2020-06-07 02:05:53 +00:00
|
|
|
|
<!-- copyright -->
|
|
|
|
|
<% if (((theme.copyright_type === 2) || (theme.copyright_type === 1 &&
|
|
|
|
|
post.copyright)) && !index){ %>
|
|
|
|
|
<div class="declare">
|
|
|
|
|
<ul class="post-copyright">
|
|
|
|
|
<li>
|
|
|
|
|
<i class="ri-copyright-line"></i>
|
|
|
|
|
<strong><%= __('post.copyright_title') %>: </strong>
|
|
|
|
|
<%= __('post.copyright_content') %>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<% } %>
|
|
|
|
|
<footer class="article-footer">
|
|
|
|
|
<% if (!index && theme.share_enable){ %> <%- partial('post/share') %> <% }
|
|
|
|
|
%> <%- partial('post/tag') %>
|
2019-12-03 11:37:44 +00:00
|
|
|
|
</footer>
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-06-07 02:05:53 +00:00
|
|
|
|
<% if (!index){ %> <%- partial('post/nav') %> <% } %> <% if (theme.valine &&
|
|
|
|
|
theme.valine.enable && !post.no_valine){ %> <%- partial('post/valine', { key:
|
|
|
|
|
post.slug, title: post.title, url: config.url+url_for(post.path) }) %> <% } %>
|
|
|
|
|
<% if (is_post()) { %> <%- partial('post/gitalk') %> <% } %> <% if
|
|
|
|
|
(theme.minivaline && theme.minivaline.enable && !post.no_minivaline){ %> <%-
|
|
|
|
|
partial('post/minivaline') %> <% } %>
|
|
|
|
|
</article>
|