most recent not least recent tag preview

This commit is contained in:
2026-02-19 15:02:55 -08:00
parent 8e9a356aea
commit 1b4a4bd654

View File

@ -11,8 +11,9 @@ title: all tags
<a href="{{ tagUrl }}" class="taglink">
<div class="tag-imgs">
{% for i in range(0, 4) %}
{% if collections[tag][i].data.image %}
<img src="/img/{{ collections[tag][i].data.image.src }}" alt="{{ collections[tag][i].data.image.alt }}">
{% set tagRecent = collections[tag] | reverse %}
{% if tagRecent[i].data.image %}
<img src="/img/{{ tagRecent[i].data.image.src }}" alt="{{ tagRecent[i].data.image.alt }}">
{% else %}
<div class="missing-image"></div>
{% endif %}