{% extends "base.html" %} {% block body %} {{ this.eyebrow }} {{ this.summary }} {{ this.title }}{{ this.children.count() }} approved tags {% for tag in this.children %} {% set usage = namespace(count=0) %} {% 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 tag._id in item_tags %}{% set usage.count = usage.count + 1 %}{% endif %} {% endfor %} {% endfor %} {% for project in site.query('/projects') %} {% if project._model == 'project' %} {% set devlog = site.get(project.path ~ '/devlog') %} {% if devlog %} {% for entry in devlog.children %} {% if tag._id in entry.topic_tag_slugs %}{% set usage.count = usage.count + 1 %}{% endif %} {% endfor %} {% endif %} {% endif %} {% endfor %} {{ tag.title }} {{ usage.count }} {% if usage.count == 1 %}entry{% else %}entries{% endif %} {{ tag.summary }} {% endfor %} {% endblock %}
{{ this.eyebrow }}