start to work in requests by cleaning up listing code
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
{% set tag = "offers" %}
|
||||
|
||||
<div id="listings">
|
||||
{% for tag in collections | getKeys | removeCoreTags | sortAlphabetically %}
|
||||
<div class="category">
|
||||
@ -5,10 +7,11 @@
|
||||
<h2>{{ tag }}</h2>
|
||||
<p>{{ tag | getTagline }}</p>
|
||||
</div>
|
||||
{% if collections[tag] | filterByDate(today) | length == 0 %}
|
||||
{% set listings = collections[tag] | filterByDate(day) | filterByTag(tag) %}
|
||||
{% if listings | length == 0 %}
|
||||
<p>No listings.</p>
|
||||
{% endif %}
|
||||
{% for listing in collections[tag] | filterByDate(today) | sortAlphabeticallyByTitle %}
|
||||
{% for listing in listings | sortAlphabeticallyByTitle %}
|
||||
{% include "listing.njk" %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user