Added tag pages

This commit is contained in:
Oliver Davies 2015-04-17 22:33:42 +01:00
parent d0bb3c20fa
commit 074806fc93
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,14 @@
---
layout: default
title: Tags
nav: blog
use:
- posts_tags
---
<h2>Tags</h2>
<ul>
{% for tag,posts in data.posts_tags %}
<li><a href="{{ site.url }}/blog/tags/{{ tag|url_encode(true) }}">{{ tag }}</a></li>
{% endfor %}
</ul>

View file

@ -0,0 +1,23 @@
---
layout: default
title: Tag Archive
nav: blog
generator:
- posts_tag_index
---
{% block head_meta %}
<link rel="alternate" type="application/atom+xml" href="{{ site.url }}/blog/tags/{{ page.tag|url_encode(true) }}.xml" title="{{ site.title }} '{{ page.tag }}' tag feed" />
<meta name="robots" content="noindex, follow">
{% endblock %}
{% block title %}{{ page.title }} "{{ page.tag }}"{% endblock %}
{% block content %}
<h2>"{{ page.tag }}"</h2>
<ul>
{% for post in page.tag_posts %}
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}