diff options
| author | davidtsadler <davidtsadler@googlemail.com> | 2011-12-30 00:55:09 +0000 |
|---|---|---|
| committer | davidtsadler <davidtsadler@googlemail.com> | 2011-12-30 00:55:09 +0000 |
| commit | 1769e1cdcfe58339eb6ff7f13925090edaa8a4a8 (patch) | |
| tree | e2692dd6f483f9e57d41a34183c71198772d6f93 /_site_build/archives.html | |
| parent | 4f363292ad67daa9f1b009ed6453567894157257 (diff) | |
Add archives page and ordinalize plugin.
Diffstat (limited to '_site_build/archives.html')
| -rw-r--r-- | _site_build/archives.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/_site_build/archives.html b/_site_build/archives.html new file mode 100644 index 0000000..38efebf --- /dev/null +++ b/_site_build/archives.html @@ -0,0 +1,26 @@ +--- +layout: default +title: Archives +--- +<section id="archives"> + <h1>Archives</h1> + {% for post in site.posts %} + {% unless post.next %} + <h2>{{ post.date | date: '%Y' }}</h2> + <ol> + {% else %} + {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} + {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} + {% if year != nyear %} + </ol> + <h2>{{ post.date | date: '%Y' }}</h2> + <ol> + {% endif %} + {% endunless %} + <li> + <time datetime="{{ post.date | date: '%Y-%m-%d' }}" pubdate>{{ post.date | date: '%b' }} {{ post.date | ordinalize }}</time> <a href="{{ post.url }}" target="_self" title="{{ post.title }}">{{ post.title }}</a> + </li> + {% endfor %} + </ol> +</section> + |
