-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathposts.html
More file actions
32 lines (31 loc) · 1006 Bytes
/
posts.html
File metadata and controls
32 lines (31 loc) · 1006 Bytes
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
32
---
layout: application
title: Growing Devs Archive
---
<ul class="years">
{% for post in site.posts %}
{% capture this_year %}{{post.date | date:'%Y'}}{% endcapture %}
{% if post.next %}
{% capture next_year %}{{post.next.date | date:'%Y'}}{% endcapture %}
{% if next_year != this_year %}
</ul><!-- end posts -->
</li><!-- end {{last_year}} -->
<li class="year"><!-- start {{this_year}} -->
<h3>{{this_year}}</h3>
<ul class="posts"><!-- start posts -->
{% endif %}
{% else %}
<li class="year"><!-- start {{this_year}} -->
<h3>{{this_year}}</h3>
<ul class="posts"><!-- start posts -->
{% endif %}
<li>
<span class="created-at">{{ post.published_at | date:'%b %d' }}</span>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% unless post.previous %}
</ul><!-- end posts -->
</li><!-- end {{last_year}} -->
{% endunless %}
{% endfor %}
</ul>