Files
fedilearns/_includes/listings.njk

18 lines
564 B
Plaintext

<div class="listings">
{% for tag in collections | getKeys | removeCoreTags | sortAlphabetically %}
<div class="category">
<div class="category-title">
<h2>{{ tag }}</h2>
<p>{{ tag | getTagline }}</p>
</div>
{% set listings = collections[tag] | filterByDate(day) | filterByTag(category) %}
{% if listings | length == 0 %}
<p>No listings.</p>
{% endif %}
{% for listing in listings | sortAlphabeticallyByTitle %}
{% include "listing.njk" %}
{% endfor %}
</div>
{% endfor %}
</div>