feat: finish index page

This commit is contained in:
Devin Haska 2024-02-23 11:55:16 -08:00
parent 2a5f17375b
commit 2d4ff7b11c
8 changed files with 43 additions and 11 deletions

View file

@ -0,0 +1,14 @@
{% macro list(posts) %}
<ul class="[ list-none p-0 flow mt-1 mb-0 flow-space-0.25 ]">
{% for post in posts %}
<li class="[ flex flex-wrap column-gap-1 row-gap-0 ]">
<div>
<a href="{{ post.url }}">{{ post.data.title }}</a>
</div>
<div class="[ text-fadeText font-size-s ]">{{ post.data.excerpt }}</div>
<div class="[ bg-surface radius-0.5 px-0.5 text-primary font-size-s ]">{{ post.data.date | formatDate("MM/DD/YYYY") }}</div>
</li>
{% endfor %}
</ul>
{% endmacro %}