feat: tweak posts include

This commit is contained in:
Devin Haska 2024-02-08 09:15:16 -08:00
parent ff11c4bc3d
commit d9df85fdd2

View file

@ -8,14 +8,13 @@
{% set month = postsInMonth | first %}
<div class="[ flex ]">
{% if isFirstMonthOfList %}<h2>{{ year }}</h2>{% endif %}
<h2 class="[ archive-month ]">{{ month }}</h2>
</div>
{% set allPosts = postsInMonth | last %}
{% for post in allPosts %}
<div class="[ flex items-center justify-between ]">
<a href="{{ post.url }}">{{ post.data.title }}</a>
<div class="[ archive-divider ] [ mx-0.5 ]"></div>
<div>{{ post.date | formatDate("Do") }}</div>
<div>{{ post.date | formatDate("MM/DD") }}</div>
</div>
{% endfor %}
{% endfor %}