feat: additional posts layout updates

This commit is contained in:
Devin Haska 2024-02-23 15:35:03 -08:00
parent c91588b5a3
commit ef3a3b4295
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -15,6 +15,6 @@ title: Posts
{% for year in years %} {% for year in years %}
{% set itemsInYear = itemsByYear[year] %} {% set itemsInYear = itemsByYear[year] %}
<h2>{{ year }}</h2> <h2>{{ year }}</h2>
<div class="[ items ] [ flex-col gap-0.25 ]">{{ list(itemsInYear) }}</div> <div>{{ list(itemsInYear) }}</div>
{% endfor %} {% endfor %}
</section> </section>