feat: additional posts layout updates
This commit is contained in:
parent
c91588b5a3
commit
ef3a3b4295
2 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
{% macro list(posts) %}
|
||||
<ul class="[ posts-list ] [ flow list-none m-0 p-0 flow-space-0.5 ]">
|
||||
{% for post in posts %}
|
||||
<li class="[ posts-list-item ]">
|
||||
<li class="[ posts-list-item line-height-l ]">
|
||||
<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>
|
||||
<div class="[ text-fadeText line-height-m flex items-center ]">{{ post.data.date | formatDate("MM/DD") }}</div>
|
||||
|
|
|
@ -15,6 +15,6 @@ title: Posts
|
|||
{% for year in years %}
|
||||
{% set itemsInYear = itemsByYear[year] %}
|
||||
<h2>{{ year }}</h2>
|
||||
<div class="[ items ] [ flex-col gap-0.25 ]">{{ list(itemsInYear) }}</div>
|
||||
<div>{{ list(itemsInYear) }}</div>
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue