From df88404769992ea9596816c3e997a82492e1ea7d Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Mon, 4 May 2026 10:15:21 -0700 Subject: [PATCH] make listings a template --- _includes/daily-listings.njk | 14 +------------- src/index.njk | 14 +------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/_includes/daily-listings.njk b/_includes/daily-listings.njk index 623b76b..0e7d902 100644 --- a/_includes/daily-listings.njk +++ b/_includes/daily-listings.njk @@ -9,19 +9,7 @@

No listings.

{% endif %} {% for listing in collections[tag] | filterByDate(today) %} -
-

{{ listing.data.title }}

-

- - {{ listing.data.handle }} - offers: {{ listing.data.blurb }} -

-

- listed on -

-
+ {% include "listing.njk" %} {% endfor %} {% endfor %} diff --git a/src/index.njk b/src/index.njk index 8667c33..28f39e8 100644 --- a/src/index.njk +++ b/src/index.njk @@ -25,19 +25,7 @@ title: Fediverse Skillshare Classifieds

No listings.

{% endif %} {% for listing in collections[tag] %} -
-

{{ listing.data.title }}

-

- - {{ listing.data.handle }} - offers: {{ listing.data.blurb }} -

-

- listed on -

-
+ {% include "listing.njk" %} {% endfor %} {% endfor %}