feat: review the home page

This commit is contained in:
2022-10-27 14:19:40 +02:00
parent bdf18a5fdf
commit ecdcd0fa8e
6 changed files with 31 additions and 18 deletions

View File

@@ -1,8 +1,9 @@
<div class="post-list">
{% for post in postslist | reverse %}
<article class="postlist-item">
<header class="postlist-header">
<article class="post-list-item">
<header class="post-list-header">
<h2>
<a href="{{ post.url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
<a href="{{ post.url }}" class="post-list-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
</h2>
<ul class="post-metadata">
<li class="post-metadata__header">Le <time datetime="{{ post.data.date | htmlDateString }}">{{ post.data.date | readableDate }}</time> {{ post.data.authors | readableAuthors }}</li>
@@ -13,8 +14,9 @@
</ul>
</header>
<p>{{ post.data.resume }}</p>
<footer class="postlist-footer">
<footer class="post-list-footer">
<a href="{{ post.url }}">Lire la suite</a>
</footer>
</article>
{% endfor %}
</div>