diff options
Diffstat (limited to 'templates/categories')
-rw-r--r-- | templates/categories/list.html | 18 | ||||
-rw-r--r-- | templates/categories/single.html | 21 |
2 files changed, 39 insertions, 0 deletions
diff --git a/templates/categories/list.html b/templates/categories/list.html new file mode 100644 index 0000000..b6d98c2 --- /dev/null +++ b/templates/categories/list.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %} +<title>Categories</title> +{% endblock %} + +{% block content %} +<p class="archive_title">[Categories]</p> + +<ul> + {% for term in terms %} + <li> + <a href="{{ term.permalink }}">/{{ term.name }}</a> + ({{ term.pages | length }}) + </li> + {% endfor %} +</ul> +{% endblock content %}
\ No newline at end of file diff --git a/templates/categories/single.html b/templates/categories/single.html new file mode 100644 index 0000000..b02797e --- /dev/null +++ b/templates/categories/single.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% block title %} +<title>{{ term.name }} | {{ config.title }}</title> +{% endblock %} + +{% block content %} +<p class="archive_title">[Category: {{ term.name }}]</p> + +{% for page in term.pages %} +<p> + <div class="date"> + {{ page.date }} + </div> + <div class="archive_title"> + <a href="{{ page.permalink | safe }}">{{ page.title }}</a> + </div> +</p> +{% endfor %} + +{% endblock content %} |