Added basic articleList component

This commit is contained in:
Claudia Reynders 2022-04-25 21:33:19 +02:00
parent d6470ed206
commit 54ff1740bc
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<ul class="article__list">
{% for article in articles | reverse %}
<li class="article__item">
<article class="article__preview">
<h2><a href="{{ article.url | url }}">{{ article.data.title }}</a></h2>
<small>
<time>{{ article.data.date | readableDate }}</time>
</small>
</article>
</li>
{% endfor %}
</ul>