summaryrefslogtreecommitdiff
path: root/_site_build/archives
diff options
context:
space:
mode:
authordavidtsadler <davidtsadler@googlemail.com>2012-01-06 15:07:27 +0000
committerdavidtsadler <davidtsadler@googlemail.com>2012-01-06 15:07:27 +0000
commit0689de3049f6463d312ff256d293843b078402f3 (patch)
tree0639f7ccb06d62c8577a4f09d00d1d832a678d3f /_site_build/archives
parentd46501e18b795d9bf41f229298810bffa1d8e520 (diff)
HTML files named as index.html
Diffstat (limited to '_site_build/archives')
-rw-r--r--_site_build/archives/index.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/_site_build/archives/index.html b/_site_build/archives/index.html
new file mode 100644
index 0000000..38efebf
--- /dev/null
+++ b/_site_build/archives/index.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>
+