Re-add tag archive
This commit is contained in:
parent
639edb4cf3
commit
31e903b058
2 changed files with 21 additions and 1 deletions
|
@ -2,7 +2,6 @@
|
|||
layout: page
|
||||
permalink: /impressum/
|
||||
title: Impressum
|
||||
tags: [impressum]
|
||||
---
|
||||
|
||||
Daniel Kempkens
|
||||
|
|
21
tags.html
Normal file
21
tags.html
Normal 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 %}
|
Loading…
Reference in a new issue