most recent not least recent tag preview
This commit is contained in:
@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user