1
0
forked from ti-nuage/site

Import initial.

This commit is contained in:
David Soulayrol
2022-04-04 18:30:08 +02:00
commit 57deaaaf34
46 changed files with 16985 additions and 0 deletions

25
layouts/front.njk Normal file
View File

@@ -0,0 +1,25 @@
{% extends "base.njk" %}
{% block article %}
{% block header %}{{ header | safe }}{% endblock %}
<article>
{% block content %}{{ contents | safe }}{% endblock %}
<section class="Services">
<h2 class="tac mt64">Actualités</h2>
{% set news = collections["news"] %}
<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>
<div class="tac mt32">
<a class="Button" href="/blog">Voir les archives</a>
</div>
</section>
</article>
{% endblock %}