mirror of https://gitlab.com/curben/blog
51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
<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">
|
|
<%- toc(page.content, {list_number: false}) %>
|
|
<%- post.content %>
|
|
</div>
|
|
<footer class="article-footer">
|
|
<ul class="article-meta">
|
|
<% if (post.lastUpdated) { %>
|
|
<li>
|
|
<span class="label">
|
|
<%= __('date_updated') %>:
|
|
<%- partial('post/updated-date') %>
|
|
</span>
|
|
</li>
|
|
<% } %>
|
|
<li>
|
|
<span class="label">
|
|
<%= __('date_published') %>:
|
|
<%- partial('post/date') %>
|
|
</span>
|
|
</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>
|