make listings a template

This commit is contained in:
2026-05-04 10:15:21 -07:00
parent 8a6c10cab9
commit df88404769
2 changed files with 2 additions and 26 deletions

View File

@ -9,19 +9,7 @@
<p>No listings.</p>
{% endif %}
{% for listing in collections[tag] | filterByDate(today) %}
<div class="listing{% if listing.data.draft %} draft{% endif %}">
<h3>{{ listing.data.title }}</h3>
<p class="blurb">
<strong>
<a href="https://{{ listing.data.url }}"
target="_blank">{{ listing.data.handle }}</a>
offers:</strong> {{ listing.data.blurb }}
</p>
<p class="listed-on">
listed on <time datetime="{{ listing.date | htmlDateString }}"
>{{ listing.date | readableDate() }}</time>
</p>
</div>
{% include "listing.njk" %}
{% endfor %}
</div>
{% endfor %}

View File

@ -25,19 +25,7 @@ title: Fediverse Skillshare Classifieds
<p>No listings.</p>
{% endif %}
{% for listing in collections[tag] %}
<div class="listing{% if listing.data.draft %} draft{% endif %}">
<h3>{{ listing.data.title }}</h3>
<p class="blurb">
<strong>
<a href="https://{{ listing.data.url }}"
target="_blank">{{ listing.data.handle }}</a>
offers:</strong> {{ listing.data.blurb }}
</p>
<p class="listed-on">
listed on <time datetime="{{ listing.date | htmlDateString }}"
>{{ listing.date | readableDate() }}</time>
</p>
</div>
{% include "listing.njk" %}
{% endfor %}
</div>
{% endfor %}