{% extends "pages/content_page.html" %} {% load humanize wagtailcore_tags %} {% block page-context-id %}collections{% endblock %} {% block page_nav %} {% include 'snippets/nav.html' with style="archive" active="collections" %} {% endblock %} {% block page_header %} {% include 'snippets/header.html' with style='collections' %} {% endblock %} {% block content %}

{% firstof page.title page_title object.title %}

{{ page.body|richtext }}
{% for item in collections %} {% with coll_stats=stats|dict_item:item.name %} {% with coll_stats.count|yesno:"a,span" as tag %} {# collections with no items are displayed but do not link to search #} <{{ tag }} class="ui card" {% if coll_stats.count %}href="{% url 'archive:list' %}?collections={{ item.id }}"{% endif %}>

{{ item.name }}

{% firstof coll_stats.count "0" as count %}

{{ count|intcomma }} digitized work{{ count|pluralize }} {% if coll_stats.dates %} · {{ coll_stats.dates }}{% endif %}

{% if item.description %}
{{ item.description|safe }}
{% endif %}
{% endwith %} {% endwith %} {% endfor %}

{% include 'snippets/fermata.svg' %} View and search the archive

{% endblock %}