most recent not least recent tag preview
This commit is contained in:
@ -11,8 +11,9 @@ title: all tags
|
|||||||
<a href="{{ tagUrl }}" class="taglink">
|
<a href="{{ tagUrl }}" class="taglink">
|
||||||
<div class="tag-imgs">
|
<div class="tag-imgs">
|
||||||
{% for i in range(0, 4) %}
|
{% for i in range(0, 4) %}
|
||||||
{% if collections[tag][i].data.image %}
|
{% set tagRecent = collections[tag] | reverse %}
|
||||||
<img src="/img/{{ collections[tag][i].data.image.src }}" alt="{{ collections[tag][i].data.image.alt }}">
|
{% if tagRecent[i].data.image %}
|
||||||
|
<img src="/img/{{ tagRecent[i].data.image.src }}" alt="{{ tagRecent[i].data.image.alt }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="missing-image"></div>
|
<div class="missing-image"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user