diff options
author | Wolfgang Müller | 2021-06-12 14:21:59 +0200 |
---|---|---|
committer | Wolfgang Müller | 2021-06-12 14:21:59 +0200 |
commit | ad2be2b20c337d99ebe6e7d4b8cf6106cfba77df (patch) | |
tree | 65c0ddbb7828fd5b174eb531739097f83a3f17ee /templates/tags | |
download | zunzuncito-ad2be2b20c337d99ebe6e7d4b8cf6106cfba77df.tar.gz |
Initial commit
Diffstat (limited to 'templates/tags')
-rw-r--r-- | templates/tags/list.html | 19 | ||||
-rw-r--r-- | templates/tags/single.html | 20 |
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 %} |