Skip to content

Commit

Permalink
add tags page
Browse files Browse the repository at this point in the history
  • Loading branch information
glehmann committed Dec 22, 2014
1 parent 6e824cb commit 0fa4566
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Expand Up @@ -32,5 +32,6 @@ defaults:
values:
layout: page
comments: true
tags: code

# Custom vars
20 changes: 20 additions & 0 deletions 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.