{% extends "base.html" %} {% from "macros/tag-links.html" import tag_links with context %} {% block body %} {% set matches = namespace(items=[]) %} {% for section_id in ['projects', 'blog', 'articles'] %} {% for item in site.query('/' ~ section_id) %} {% set item_tags = item.taxonomy_tags if item._model == 'project' else item.tags %} {% 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) %} {% set item_tags = item.taxonomy_tags if item._model == 'project' else item.tags %} {% endfor %}
{% else %}

No projects, blog entries, or articles use this tag yet.

{% endif %}
{% endblock %}