Added tag pages
This commit is contained in:
parent
d0bb3c20fa
commit
074806fc93
14
source/blog/tags.html.twig
Normal file
14
source/blog/tags.html.twig
Normal 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>
|
23
source/blog/tags/tag.html.twig
Normal file
23
source/blog/tags/tag.html.twig
Normal 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 %}
|
Reference in a new issue