-
Notifications
You must be signed in to change notification settings - Fork 310
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (26 loc) · 694 Bytes
/
index.html
File metadata and controls
31 lines (26 loc) · 694 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
---
layout: default
---
<section>
{% for post in site.posts %}
{% unless post.next %}
<h3 class="code">{{ post.date | date: '%Y' }}</h3>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
<h3 class="code">{{ post.date | date: '%Y' }}</h3>
{% endif %}
{% endunless %}
<ul>
<li>
<div class="post-date code">
<span>{{ post.date | date: "%b %d" }}</span>
</div>
<div class="title">
<a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">{{ post.title }}</a>
</div>
</li>
</ul>
{% endfor %}
</section>