1
0
forked from ti-nuage/site
Files
site-tinuage/layouts/blog.njk
David Soulayrol 57deaaaf34 Import initial.
2022-04-04 18:30:08 +02:00

19 lines
538 B
Plaintext

{% extends "base.njk" %}
{% block article %}
{% block header %}{{ header | safe }}{% endblock %}
<article>
{% block content %}{{ contents | safe }}{% endblock %}
{% set news = collections["archives"] %}
<ul>
{% for article in news %}
<li>
<p><a href="/{{ article.path }}">{{ moment(article.date).format('LL') }} | {{ article.title }}</a></p>
<p>{{ article.excerpt | safe }}</p>
</li>
{% else %}
{% endfor %}
</ul>
</article>
{% endblock %}