continue building out request infrastructure

This commit is contained in:
2026-05-06 08:59:44 -07:00
parent 2615556003
commit 7d6c64e964
24 changed files with 96 additions and 23 deletions

22
_includes/daily.njk Normal file
View File

@ -0,0 +1,22 @@
{% css %}
section > h2 {
background-color: var(--color-gray);
font-size: 2rem;
text-align: center;
margin: 5rem 0 1rem;
}
{% endcss %}
<section>
<h2>Offers</h2>
{% set category = "offers" %}
{% include "listings.njk" %}
</section>
<section>
<h2>Requests</h2>
{% set category = "requests" %}
{% include "listings.njk" %}
</section>

View File

@ -1,13 +1,11 @@
{% set tag = "offers" %}
<div id="listings">
<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(tag) %}
{% set listings = collections[tag] | filterByDate(day) | filterByTag(category) %}
{% if listings | length == 0 %}
<p>No listings.</p>
{% endif %}