Skip to content

Instantly share code, notes, and snippets.

@moshen
Created March 2, 2011 18:34
Show Gist options
  • Save moshen/851434 to your computer and use it in GitHub Desktop.
Save moshen/851434 to your computer and use it in GitHub Desktop.
---
layout: default
title: Posts by date
---
<h1>{{ page.title }}</h1>
{% for year in site.postsbyyear %}
{% for month in year.months %}
<h2>{{ month.name }} {{ year.number }}</h2>
<ul class="clickList">
{% for post in month.posts %}
<li><a href="{{ post.url }}">{{ post.title }} <span class="date">- {{ post.date | date: "%B %d %Y" }}</span></a></li>
{% endfor %}
</ul>
{% endfor %}
{% endfor %}
---
layout: default
title: Posts by tag
---
<h1>{{ page.title }}</h1>
{% for tag in site.postsbycategory %}
<a name="{{ tag.name }}"></a><h2>{{ tag.name }}</h2>
<ul class="clickList">
{% for post in tag.posts %}
<li><a href="{{ post.url }}">{{ post.title }} <span class="date">- {{ post.date | date: "%B %d %Y" }}</span></a></li>
{% endfor %}
</ul>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment