Import initial.
This commit is contained in:
25
layouts/front.njk
Normal file
25
layouts/front.njk
Normal 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 %}
|
||||
Reference in New Issue
Block a user