{% extends "base.html" %} {# Group template - used for tags index, authors index, archive index, etc. #} {# This template shows a list of groups (tags, authors, years) and their content counts #} {% block main %} {# Page Title #}

{{ title }}

{# Group Listing with IndieWeb h-feed #}

{{ title }}

{% for name, items in group(kind=kind) %} {% if kind == "stream" and name == "draft" %}{% continue %}{% endif %}

{% set slug = name | trim | slugify %} {% if kind != "stream" %} {% set slug = kind ~ "-" ~ slug %} {% endif %} {% set link = slug ~ ".html"%} {%if kind == "author" %}{% include "group_author_avatar.html" ignore missing%}{% endif %}{% if kind == "stream" %}{{ stream_display_name(stream=name) }}{% elif kind == "series" %}{{ series_display_name(series=name) }}{% else %}{{name}}{% endif %}

{{ items | remove_draft | length }} post{% if items | remove_draft | length != 1 %}s{% endif %}
{# Show preview of recent posts in this tag with IndieWeb h-entry #} {% for post in items | remove_draft | sort(attribute="date") | reverse %}
{{ post.title }} {% if post.date %} {% endif %}
{% endfor %}
{% endfor %}
{# Back to main navigation #} {% endblock %}