feat: show full date on index

This commit is contained in:
Devin Haska 2024-02-25 20:24:44 -08:00
parent 9e4372cf3d
commit ceedef8441
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{% macro list(posts) %}
{% macro list(posts, format = "MM/DD") %}
<ul class="[ posts-list ] [ flow list-none m-0 p-0 flow-space-0.5 ]">
{% for post in posts %}
<li class="[ posts-list-item line-height-l gap-1 ]">
@ -6,7 +6,7 @@
<a href="{{ post.url }}">{{ post.data.title }}</a>
<div class="[ text-fadeText font-size-s line-height-m ]">{{ post.data.excerpt }}</div>
</div>
<div class="[ text-fadeText ]">{{ post.data.date | formatDate("MM/DD") }}</div>
<div class="[ text-fadeText ]">{{ post.data.date | formatDate(format) }}</div>
</li>
{% endfor %}
</ul>