2019-06-27 15:11:35 +00:00
|
|
|
<article id="<%= post.layout %>-<%= post.slug %>" class="h-entry article article-type-<%= post.layout %>" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
|
2021-02-22 07:00:28 +00:00
|
|
|
<%- partial('_partial/header', {}, { cache: false }) %>
|
2019-09-06 12:32:26 +00:00
|
|
|
<hr class="header-hr">
|
2019-06-27 15:11:35 +00:00
|
|
|
<div class="article-inner">
|
2018-09-10 09:21:59 +00:00
|
|
|
<%- partial('post/gallery') %>
|
2018-11-01 01:05:02 +00:00
|
|
|
<% if (post.link || post.title) { %>
|
2018-09-10 09:21:59 +00:00
|
|
|
<header class="article-header">
|
2019-06-27 15:11:35 +00:00
|
|
|
<%- partial('post/title', {class_name: 'p-name entry-title article-title'}) %>
|
2018-09-10 09:21:59 +00:00
|
|
|
</header>
|
|
|
|
<% } %>
|
2019-08-09 04:25:10 +00:00
|
|
|
<% if (post.excerpt) { %>
|
|
|
|
<p class="p-summary"><%- post.excerpt %></p>
|
2019-06-26 07:49:14 +00:00
|
|
|
<% } %>
|
2019-08-25 12:48:03 +00:00
|
|
|
<div class="e-content article-entry" itemprop="articleBody">
|
2019-06-08 08:01:39 +00:00
|
|
|
<%- toc(page.content, {list_number: false}) %>
|
2019-08-09 04:25:10 +00:00
|
|
|
<%- post.more %>
|
2018-09-10 09:21:59 +00:00
|
|
|
</div>
|
|
|
|
<footer class="article-footer">
|
|
|
|
<ul class="article-meta">
|
2020-06-23 04:27:55 +00:00
|
|
|
<% if (post.updated) { %>
|
2018-11-01 01:05:02 +00:00
|
|
|
<li>
|
2019-08-30 18:02:42 +00:00
|
|
|
<span class="label"><%= __('date_updated') %>:</span>
|
2019-06-04 04:25:43 +00:00
|
|
|
<%- partial('post/updated-date') %>
|
2018-11-01 01:05:02 +00:00
|
|
|
</li>
|
|
|
|
<% } %>
|
2018-09-10 09:21:59 +00:00
|
|
|
<li>
|
2019-08-30 18:02:42 +00:00
|
|
|
<span class="label"><%= __('date_published') %>:</span>
|
2019-06-04 04:25:43 +00:00
|
|
|
<%- partial('post/date') %>
|
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>
|
|
|
|
<% } %>
|
2018-11-01 01:05:02 +00:00
|
|
|
<% if (post.tags && post.tags.length) { %>
|
2018-09-10 09:21:59 +00:00
|
|
|
<li>
|
|
|
|
<span class="label"><%= __('tag') %>:</span>
|
|
|
|
<%- partial('post/tag') %>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
2020-11-08 11:37:21 +00:00
|
|
|
<li>
|
|
|
|
<span class="label"><%= __('source') %>:</span>
|
|
|
|
<%- link('https://gitlab.com/curben/blog/-/blob/master/source/' + post.source, post.source.replace('_posts/', '')) %>
|
|
|
|
</li>
|
2018-09-10 09:21:59 +00:00
|
|
|
<hr/>
|
|
|
|
</ul>
|
|
|
|
</footer>
|
|
|
|
</div>
|
2018-11-01 01:05:02 +00:00
|
|
|
<% if (!index) { %>
|
2018-09-10 09:21:59 +00:00
|
|
|
<%- partial('post/nav') %>
|
|
|
|
<% } %>
|
|
|
|
</article>
|