51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
<article id="<%= post.layout %>-<%= post.slug %>" class="article article-type-<%= post.layout %> mb" itemscope itemprop="blogPost">
|
|
<div class="article-inner">
|
|
<%- partial('post/gallery') %>
|
|
<% if (post.link || post.title){ %>
|
|
<h1 class="page-title"><%= post.title %></h1>
|
|
<% } %>
|
|
<div class="article-entry" itemprop="articleBody">
|
|
<% if (post.excerpt && index){ %>
|
|
<%- post.excerpt %>
|
|
<% if (theme.excerpt_link){ %>
|
|
<p class="article-more-link">
|
|
<a href="<%- url_for(post.path) %>#more"><%= theme.excerpt_link %></a>
|
|
</p>
|
|
<% } %>
|
|
<% } else { %>
|
|
<%- post.content %>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
|
|
<% if (!index){ %>
|
|
<%- partial('post/nav') %>
|
|
<% } %>
|
|
|
|
<section class="card card-noheader">
|
|
<div class="author-area">
|
|
<img src="/img/avatar.png" class="author-avatar" alt="avatar">
|
|
<div class="author-metadata">
|
|
<div class="author-pseudo">Écrit par <a href="https://kazhnuz.space">Kazhnuz</a></div>
|
|
<small class="author-date">Le <%= date(post.date, "dddd DD MMMM YYYY, hh:mm:ss") %></small>
|
|
</div>
|
|
</div>
|
|
<%- partial('post/category') %>
|
|
</section>
|
|
|
|
<footer class="article-footer">
|
|
<% if (post.comments && config.disqus_shortname){ %>
|
|
<a href="<%- post.permalink %>#disqus_thread" class="article-comment-link"><%= __('comment') %></a>
|
|
<% } %>
|
|
<%- partial('post/tag') %>
|
|
</footer>
|
|
|
|
<% if (!index && post.comments && config.disqus_shortname){ %>
|
|
<section id="comments">
|
|
<div id="disqus_thread">
|
|
<noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
</div>
|
|
</section>
|
|
<% } %>
|