<article id="<%= post.layout %>-<%= post.slug %>" class="article article-type-<%= post.layout %> container-typographic" itemscope itemprop="blogPost">
  <div class="article-inner">
    <%- partial('post/gallery') %>
    <% if (post.link || post.title){ %>
      <div class="article-header">
        <%- partial('post/title', {class_name: 'article-title'}) %>
      </div>
    <% } %>
    <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>

<div>
  <strong class="btn btn-fake">Télécharger : </strong>
  <a href="/download/<%- post.download %>.pdf" class="btn btn-primary">.PDF</a>
  <a href="/download/<%- post.download %>.epub" class="btn btn-info">.EPUB</a>
</div>

<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>
<% } %>
