27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
<div class="post-list">
|
|
{% for post in postslist | reverse %}
|
|
<article class="post-list-item">
|
|
<header class="post-list-header">
|
|
<h2>
|
|
<a href="{{ post.url }}" class="post-list-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
|
|
</h2>
|
|
<div class="post-metadata">
|
|
<div>
|
|
Le <time datetime="{{ post.data.date | htmlDateString }}">{{ post.data.date | readableDate }}</time> {{ post.data.authors | readableAuthors }}
|
|
</div>
|
|
<ul >
|
|
{%- for tag in post.data.tags | filterTagList %}
|
|
{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
|
|
<li><a href="{{ tagUrl }}" class="post-tag">#{{ tag }}</a>{%- if not loop.last %} {% endif %}</li>
|
|
{%- endfor %}
|
|
</ul>
|
|
</div>
|
|
</header>
|
|
<p>{{ post.data.description }}</p>
|
|
<footer class="post-list-footer">
|
|
<a href="{{ post.url }}">Lire la suite</a>
|
|
</footer>
|
|
</article>
|
|
{% endfor %}
|
|
</div>
|