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

54 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

<article id="<%= post.layout %>-<%= post.slug %>" class="h-entry article article-type-<%= post.layout %>" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<%- partial('_partial/header', {}, { cache: true }) %>
<hr class="header-hr">
<div class="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: 'p-name entry-title article-title'}) %>
2018-09-10 09:21:59 +00:00
</header>
<% } %>
<% if (post.excerpt) { %>
<p class="p-summary"><%- post.excerpt %></p>
<% } %>
<div class="e-content article-entry" itemprop="articleBody">
<%- toc(page.content, {list_number: false}) %>
<%- post.more %>
2018-09-10 09:21:59 +00:00
</div>
<footer class="article-footer">
<ul class="article-meta">
<% if (post.updated) { %>
<li>
<span class="label"><%= __('date_updated') %>:</span>
<%- partial('post/updated-date') %>
</li>
<% } %>
2018-09-10 09:21:59 +00:00
<li>
<span class="label"><%= __('date_published') %>:</span>
<%- 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>
<% } %>
<% 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>
<% if (!index) { %>
2018-09-10 09:21:59 +00:00
<%- partial('post/nav') %>
<% } %>
</article>