58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
---
|
|
layout: blog.njk
|
|
templateClass: tmpl-post
|
|
---
|
|
{%- if toc %}
|
|
<aside class="left-side">
|
|
{{ content | toc | safe }}
|
|
</aside>
|
|
{%- endif %}
|
|
<div class="main-content">
|
|
<h1>{{ title }}</h1>
|
|
|
|
<div class="post-metadata">
|
|
<div class="post-metadata__header">
|
|
Le <time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time> {{ authors | readableAuthors }}
|
|
</div>
|
|
<ul class="post-tags article-tags">
|
|
{%- for tag in tags | filterTagList %}
|
|
{%- set tagUrl %}/blog/tags/{{ tag | slugify }}/{% endset %}
|
|
<li class="post-tag"><a href="{{ tagUrl }}">#{{ tag }}</a>{%- if not loop.last %} {% endif %}</li>
|
|
{%- endfor %}
|
|
</ul>
|
|
</div>
|
|
|
|
{{ content | safe }}
|
|
|
|
<hr>
|
|
|
|
{%- set articles = collections.articles | filterDraft %}
|
|
{%- if articles %}
|
|
{# these filters are locale-aware in 2.0.0-canary.14 #}
|
|
{%- set previousArticle = articles | getPreviousCollectionItem %}
|
|
{%- set nextArticle = articles | getNextCollectionItem %}
|
|
{%- if nextArticle or previousArticle %}
|
|
<nav class="post-nav">
|
|
<ul>
|
|
{%- if nextArticle %}<li class="next">
|
|
<a href="{{ nextArticle.url }}" title="Article suivant">
|
|
<span class="icon" aria-hidden="true">«</span>
|
|
<span>{{ nextArticle.data.title }}</span>
|
|
</a>
|
|
</li>{% endif %}
|
|
{%- if previousArticle %}<li class="previous">
|
|
<a href="{{ previousArticle.url }}" title="Article précédent">
|
|
<span>{{ previousArticle.data.title }}</span>
|
|
<span class="icon" aria-hidden="true">»</span>
|
|
</a>
|
|
</li>{% endif %}
|
|
</ul>
|
|
</nav>
|
|
{%- endif %}
|
|
{%- endif %}
|
|
</div>
|
|
<aside class="right-side">
|
|
{% include "tagslist.njk" %}
|
|
{% include "other_links.njk" %}
|
|
</aside>
|