1
0
Fork 0

Re-add tag archive

This commit is contained in:
Daniel Kempkens 2014-12-23 19:43:36 +01:00
parent 639edb4cf3
commit 31e903b058
2 changed files with 21 additions and 1 deletions

View file

@ -2,7 +2,6 @@
layout: page
permalink: /impressum/
title: Impressum
tags: [impressum]
---
Daniel Kempkens

21
tags.html Normal file
View file

@ -0,0 +1,21 @@
---
layout: page
permalink: /tags/
title: Tag Archive
---
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tags_list = site_tags | split:',' | sort %}
{% for tag in tags_list %}
<h2 id="tag-{{ tag }}">{{ tag }}</h2>
<ul>
{% for post in site.tags[tag] %}
{% if post.title != null %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}