Skip to content

Instantly share code, notes, and snippets.

@Crhistoph
Created July 14, 2012 15:51
Show Gist options
  • Save Crhistoph/3111878 to your computer and use it in GitHub Desktop.
Save Crhistoph/3111878 to your computer and use it in GitHub Desktop.
Jeyll _layouts/archive.html
---
layout: default
title: archives
---
<div class="webblogPost">
<h3>Archive</h3>
<div id="weblogPostBody">
{% for month in page.months %}
<h4>{{ month | date:"%B" }} <small>{{ month | date:"%Y" }}</small></h4>
<ul>
{% for post in page.posts_by_month[month] %}
<li><a href="{{ post.url }}">{{ post.title }}</a> <small>{{ post.date | date:"%d/%m/%y" }}</small></li>
{% endfor %}
</ul>
</div>
</div>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment