forked from ti-nuage/site
Traitement des articles anciens sur le blog.
This commit is contained in:
@@ -3,12 +3,21 @@
|
||||
{% block article %}
|
||||
<h1 class="mt128">Actualités</h1>
|
||||
{% block header %}{{ header | safe }}{% endblock %}
|
||||
{% for article in collections["year"] %}
|
||||
<article>
|
||||
{% for article in collections["archives"] %}
|
||||
<h2><a href="/{{ article.path }}">{{ date_format(article.date) }} | {{ article.title }}</a></h2>
|
||||
{{ article.excerpt | safe }}
|
||||
<p><a href="/{{ article.path }}">Lire la suite...</a></p>
|
||||
</article>
|
||||
{% else %}
|
||||
{% endfor %}
|
||||
<div class="archives mt64">
|
||||
{% for article in collections["archives"] %}
|
||||
<article>
|
||||
<h2><a href="/{{ article.path }}">{{ date_format(article.date) }} | {{ article.title }}</a></h2>
|
||||
{{ article.excerpt | safe }}
|
||||
</article>
|
||||
{% else %}
|
||||
{% endfor %}
|
||||
</article>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user