summaryrefslogtreecommitdiffstatshomepage
path: root/templates/tags
diff options
context:
space:
mode:
Diffstat (limited to 'templates/tags')
-rw-r--r--templates/tags/list.html19
-rw-r--r--templates/tags/single.html20
2 files changed, 39 insertions, 0 deletions
diff --git a/templates/tags/list.html b/templates/tags/list.html
new file mode 100644
index 0000000..0cab254
--- /dev/null
+++ b/templates/tags/list.html
@@ -0,0 +1,19 @@
+{% extends "base.html" %}
+
+{%- block title -%}
+all tags
+{%- endblock title -%}
+
+{%- block description %}
+all tags
+{%- endblock description %}
+
+{% block content %}
+<nav class="tags">
+ <ul class="inline">
+ {%- for term in terms %}
+ <li><a class="tag bigger" href="{{ get_taxonomy_url(kind="tags", name=term.name) }}">{{ term.name }}<sup>{{ term.pages | length }}</sup></a></li>
+ {%- endfor %}
+ </ul>
+</nav>
+{% endblock content %}
diff --git a/templates/tags/single.html b/templates/tags/single.html
new file mode 100644
index 0000000..2238061
--- /dev/null
+++ b/templates/tags/single.html
@@ -0,0 +1,20 @@
+{% extends "base.html" %}
+
+{%- block additional_feeds %}
+<link rel="alternate" type="application/atom+xml" title="zunzuncito - #{{ term.name }}" href="atom.xml" />
+{%- endblock %}
+
+{%- block title -%}
+posts tagged with #{{ term.name }}
+{%- endblock title -%}
+
+{%- block description %}
+posts tagged with #{{ term.name }} ยท <a href="atom.xml">feed</a>
+{%- endblock description %}
+
+{%- block content %}
+{%- for post in paginator.pages %}
+ {{ macros::render_post(post=post) }}
+{%- endfor %}
+{{ macros::render_pagination(paginator=paginator) }}
+{%- endblock content %}