1
0
Fork 0
blog.kempkens.io/tags.html

39 lines
1 KiB
HTML
Raw Normal View History

2014-03-23 19:40:19 +00:00
---
layout: post-index
permalink: /tags/
title: Tag Archive
description: "An archive of posts sorted by tag."
---
<ul class="entry-meta inline-list">
{% assign tags_list = site.tags %}
2014-03-23 19:40:19 +00:00
{% if tags_list.first[0] == null %}
{% for tag in tags_list %}
2014-03-23 19:40:19 +00:00
<li><a href="#{{ tag }}" class="tag">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
{% endfor %}
{% else %}
{% for tag in tags_list %}
2014-03-23 19:40:19 +00:00
<li><a href="#{{ tag[0] }}" class="tag">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
{% endfor %}
{% endif %}
{% assign tags_list = nil %}
</ul>
{% for tag in site.tags %}
2014-03-23 19:40:19 +00:00
<article>
<h2 id="{{ tag[0] }}">{{ tag[0] }}</h2>
<ul>
{% assign pages_list = tag[1] %}
2014-03-23 19:40:19 +00:00
{% for post in pages_list %}
{% if post.title != null %}
{% if group == null or group == post.group %}
<li class="entry-title"><a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
2014-03-23 19:40:19 +00:00
{% endif %}
{% endif %}
{% endfor %}
{% assign pages_list = nil %}
{% assign group = nil %}
</ul>
</article><!-- /.hentry -->
{% endfor %}