start to work in requests by cleaning up listing code
This commit is contained in:
1 parent
3f20d7317b
commit
c2ff13327c
13 files changed
+43
-33
No files matched your search
@@ -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