forked from csswizardry/csswizardry.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.html
30 lines (26 loc) · 886 Bytes
/
archive.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
---
layout: page
title: CSS Wizardry Posts Archive
page-class: page--archive
permalink: /archive/
---
<section class="posts">
<p>I have written <b>{{ site.posts | size }}</b> post on this site, mostly
covering CSS, architecture, performance, and web development. Find a
reverse-chronological list of them all here.</p>
{% for post in site.posts %}
{% assign currentDate = post.date | date: "%Y" %}
{% if currentDate != myDate %}
{% unless forloop.first %}</ol>{% endunless %}
<hr />
<h2>{{ currentDate }}</h2>
<ol reversed>
{% assign myDate = currentDate %}
{% endif %}
<li>
<b><time class="" datetime="{{ post.date | date: "%Y-%m-%d" }}">{{ post.date | date: "%B %d" }}</time>:</b>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% if forloop.last %}</ol>{% endif %}
{% endfor %}
</section>