feat: fix tag list in catalogue-item.html

This commit is contained in:
Devin Haska 2024-11-12 16:18:12 -08:00
parent c2471ea467
commit 6084396e0b
2 changed files with 9 additions and 4 deletions

View file

@ -24,9 +24,14 @@ imageCaption: ""
</div>
{% endif %}
{% if filteredTags | length > 0 %}
<ul class="[ categories ] [ cluster p-0 flow-space-2 line-height-m ]"
<ul class="[ cluster p-0 flow-space-2 line-height-m text-fadeText ]"
role="list">
{% for tag in filteredTags %}<li class="[ flex gap-0.25 ]">{{ tag }}</li>{% endfor %}
{% for tag in filteredTags %}
<li class="[ flex gap-0.25 items-center ]">
<span class="text-border">{% include "svgs/frame.svg" %}</span>
{{ tag }}
</li>
{% endfor %}
</ul>
{% endif %}
</header>

View file

@ -1,7 +1,7 @@
{% macro one(post, format = "MM/DD") %}
{% macro one(post, fmt = "MM/DD") %}
<article class="[ posts-list-item column-gap-0.5 justify-between line-height-l ]">
<a href="{{ post.url }}">{{ post.data.title }}</a>
<time datetime="{{ post.date }}" class="[ text-fadeText ]">{{ post.date | formatDate(<built-in function format>) }}</time>
<time datetime="{{ post.date }}" class="[ text-fadeText ]">{{ post.date | formatDate(fmt) }}</time>
<p class="[ text-fadeText font-size-s line-height-m ]">{{ post.data.excerpt }}</p>
</article>
{% endmacro %}