make listings a template
This commit is contained in:
@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user