{% extends "base.html" %} {% from "macros/tag-links.html" import tag_links with context %} {% block body %} {% set matches = namespace(items=[]) %} {% for section_id in ['blog', 'articles'] %} {% for item in site.query('/' ~ section_id) %} {% if this._id in item.tags %}{% set matches.items = matches.items + [item] %}{% endif %} {% endfor %} {% endfor %}

Tag

{{ this.title }}

{{ this.summary }}

Tagged {{ this.title }} {{ matches.items|length }} {% if matches.items|length == 1 %}entry{% else %}entries{% endif %}
{% if matches.items %}
{% for item in matches.items|sort(attribute='date', reverse=true) %}

{{ item.title }}

{{ item.summary }}

{% if item.tags %}{% endif %} Read entry →
{% endfor %}
{% else %}

No blog entries or articles use this tag yet.

{% endif %}
{% endblock %}