Permalink
Browse files

add tags page

  • Loading branch information...
glehmann committed Dec 22, 2014
1 parent 6e824cb commit 0fa4566d17c720220423e897b561efb2df399ba0
Showing with 21 additions and 0 deletions.
  1. +1 −0 _config.yml
  2. +20 −0 tags.md
View
@@ -32,5 +32,6 @@ defaults:
values:
layout: page
comments: true
tags: code
# Custom vars
View
20 tags.md
@@ -0,0 +1,20 @@
---
layout: page
title: Tags
---
{% capture tags %}
{% for tag in site.tags %}
{{ tag[0] }}
{% endfor %}
{% endcapture %}
{% assign sortedtags = tags | split:' ' | sort %}
{% for tag in sortedtags %}
# {{ tag }}
{% for post in site.tags[tag] %}
* {{ post.date | date_to_string }} » [{{ post.title }}]({{ post.url }})
{% endfor %}
{% endfor %}

0 comments on commit 0fa4566

Please sign in to comment.