2018-09-10 09:21:59 +00:00
|
|
|
<article id="<%= post.layout %>-<%= post.slug %>" class="article article-type-<%= post.layout %>" itemscope itemprop="blogPost">
|
|
|
|
<%- partial('_partial/header') %>
|
|
|
|
<hr/>
|
|
|
|
<div class="article-inner">
|
|
|
|
<%- partial('post/gallery') %>
|
|
|
|
<% if (post.link || post.title){ %>
|
|
|
|
<header class="article-header">
|
|
|
|
<%- partial('post/title', {class_name: 'article-title'}) %>
|
|
|
|
</header>
|
|
|
|
<% } %>
|
|
|
|
<div class="article-entry typo" itemprop="articleBody">
|
|
|
|
<% if (post.excerpt && index){ %>
|
|
|
|
<%- post.excerpt %>
|
|
|
|
<% if (theme.excerpt_link){ %>
|
|
|
|
<p class="article-more-link">
|
2018-09-21 05:27:00 +00:00
|
|
|
<%- link_to(url_for(post.path)+'#more', theme.excerpt_link) %>
|
2018-09-10 09:21:59 +00:00
|
|
|
</p>
|
|
|
|
<% } %>
|
|
|
|
<% } else { %>
|
2018-09-21 05:39:40 +00:00
|
|
|
<%- toc(page.content, {list_number: false}) %>
|
2018-09-10 09:21:59 +00:00
|
|
|
<%- post.content %>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
<footer class="article-footer">
|
|
|
|
<ul class="article-meta">
|
|
|
|
<li>
|
|
|
|
<span class="label"><%= __('date_published') %>:</span>
|
2018-09-23 06:00:00 +00:00
|
|
|
<%- partial('post/date', {class_name: 'article-date', date_format: 'D MMM YYYY'}) %>
|
2018-09-10 09:21:59 +00:00
|
|
|
</li>
|
|
|
|
<% if (post.categories && post.categories.length) { %>
|
|
|
|
<li>
|
|
|
|
<span class="label"><%= __('category') %>:</span>
|
|
|
|
<%- partial('post/category') %>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
<% if (post.tags && post.tags.length){ %>
|
|
|
|
<li>
|
|
|
|
<span class="label"><%= __('tag') %>:</span>
|
|
|
|
<%- partial('post/tag') %>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
<hr/>
|
|
|
|
</ul>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
<% if (!index){ %>
|
|
|
|
<%- partial('post/nav') %>
|
|
|
|
<% } %>
|
|
|
|
</article>
|