2014-03-23 19:40:19 +00:00
|
|
|
---
|
|
|
|
layout: post-index
|
|
|
|
permalink: /tags/
|
|
|
|
title: Tag Archive
|
|
|
|
description: "An archive of posts sorted by tag."
|
|
|
|
---
|
|
|
|
|
2014-06-14 20:23:13 +00:00
|
|
|
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
|
|
|
{% assign tags_list = site_tags | split:',' | sort %}
|
|
|
|
|
2014-03-23 19:40:19 +00:00
|
|
|
<ul class="entry-meta inline-list">
|
2014-06-14 20:23:13 +00:00
|
|
|
{% for item in (0..site.tags.size) %}{% unless forloop.last %}
|
|
|
|
{% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %}
|
|
|
|
<li><a href="#{{ this_word }}" class="tag">{{ this_word }} <span>{{ site.tags[this_word].size }}</span></a></li>
|
|
|
|
{% endunless %}{% endfor %}
|
2014-03-23 19:40:19 +00:00
|
|
|
</ul>
|
|
|
|
|
2014-06-14 20:23:13 +00:00
|
|
|
{% for item in (0..site.tags.size) %}{% unless forloop.last %}
|
|
|
|
{% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %}
|
2014-03-23 19:40:19 +00:00
|
|
|
<article>
|
2014-06-14 20:23:13 +00:00
|
|
|
<h2 id="{{ this_word }}">{{ this_word }}</h2>
|
2014-03-23 19:40:19 +00:00
|
|
|
<ul>
|
2014-06-14 20:23:13 +00:00
|
|
|
{% for post in site.tags[this_word] %}{% if post.title != null %}
|
|
|
|
<li class="entry-title"><a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
|
|
|
|
{% endif %}{% endfor %}
|
2014-03-23 19:40:19 +00:00
|
|
|
</ul>
|
|
|
|
</article><!-- /.hentry -->
|
2014-06-14 20:23:13 +00:00
|
|
|
{% endunless %}{% endfor %}
|