start to work in requests by cleaning up listing code

This commit is contained in:
2026-05-06 08:28:07 -07:00
parent 3f20d7317b
commit c2ff13327c
13 changed files with 43 additions and 33 deletions

View File

@ -14,20 +14,5 @@ title: FediLearns Classifieds
</ul>
</div>
<div id="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] | filterByTag("offers") %}
{% if listings | length == 0 %}
<p>No listings.</p>
{% endif %}
{% for listing in listings | sortAlphabeticallyByTitle %}
{% include "listing.njk" %}
{% endfor %}
</div>
{% endfor %}
</div>
{% set day = null %}
{% include "listings.njk" %}