diff options
Diffstat (limited to 'templates/tags')
| -rw-r--r-- | templates/tags/list.html | 14 | ||||
| -rw-r--r-- | templates/tags/single.html | 26 |
2 files changed, 40 insertions, 0 deletions
diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..11d1282 --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block header %} +<p><a href="{{ current_path }}..">..</a>{{ current_path }}</p> +<h1>{{ taxonomy.name }}</h1> +{% endblock header %} + +{% block content %} +<p> +{% for term in terms %} +<a href="{{ term.permalink | safe }}">#{{ term.name }}</a>[{{ term.pages | length }}] +{% endfor %} +</p> +{% endblock content %}
\ No newline at end of file diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..7a3ab44 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,26 @@ +{% extends "base.html" %} + +{% block header %} +<p><a href="{{ current_path }}">..</a>/{{ term.slug }}/</p> +<h1>{{ term.name }}</h1> +{% endblock header %} + +{% block content %} +{% if paginator %} +{% set pages = paginator.pages %} +{% else %} +{% set pages = term.pages %} +{% endif %} +<ul> +{% for page in pages %} + <li> + <a href="{{ page.permalink | safe }}">{% if page.date %}{{ page.date }} - {% endif %}{{ page.title }}</a> + <br /> + {{ page.description }} + </li> +{% endfor %} +</ul> +{% if paginator %} +<p>{% if paginator.previous %}<a href="{{ paginator.first }}"><< First</a> <a href="{{ paginator.previous }}">< Previous</a>{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}<a href="{{ paginator.next }}">Next ></a> <a href="{{ paginator.last }}">Last >></a>{% endif %}</p> +{% endif %} +{% endblock content %}
\ No newline at end of file |
