blog/themes/typing/layout/_partial/article.ejs

54 lines
1.6 KiB
Plaintext
Raw Normal View History

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="hentry article-inner">
2018-09-10 09:21:59 +00:00
<%- partial('post/gallery') %>
<% if (post.link || post.title) { %>
2018-09-10 09:21:59 +00:00
<header class="article-header">
<%- partial('post/title', {class_name: 'entry-title article-title'}) %>
2018-09-10 09:21:59 +00:00
</header>
<% } %>
<% if (post.subtitle) { %>
<p class="entry-summary"><%- post.subtitle %></p>
<% } %>
<div class="entry-content article-entry typo" itemprop="articleBody">
<%- toc(page.content, {list_number: false}) %>
<%- post.content %>
2018-09-10 09:21:59 +00:00
</div>
<footer class="article-footer">
<ul class="article-meta">
<% if (post.lastUpdated) { %>
<li>
<span class="label">
<%= __('date_updated') %>:
<%- partial('post/updated-date') %>
</span>
</li>
<% } %>
2018-09-10 09:21:59 +00:00
<li>
<span class="label">
<%= __('date_published') %>:
<%- partial('post/date') %>
</span>
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) { %>
2018-09-10 09:21:59 +00:00
<li>
<span class="label"><%= __('tag') %>:</span>
<%- partial('post/tag') %>
</li>
<% } %>
<hr/>
</ul>
</footer>
</div>
<% if (!index) { %>
2018-09-10 09:21:59 +00:00
<%- partial('post/nav') %>
<% } %>
</article>