-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy patharchives.html
31 lines (29 loc) · 871 Bytes
/
archives.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
layout: page
title: Archives
published: false
---
<section id="archive">
{% assign latestPost = site.posts | first %}
<h2>{{ latestPost.date | date: "%Y" }}</h2>
{% for post in site.posts %}
{% unless post.next %}
<ul>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
</ul>
<h2>{{ post.date | date: '%Y' }}</h2>
<ul>
{% endif %}
{% endunless %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</section>
<p class="copy">
Site généré avec <a href="https://jekyllrb.com">Jekyll</a> et déployé sur
<a href="https://netlify.com">Netlify</a> le {% include fr_date.html
date=site.time %}
</p>