Update to Eleventy v3 #11

Merged
wonderfulfrog merged 56 commits from feat/11ty-v3 into main 2025-01-27 18:23:38 -08:00
2 changed files with 9 additions and 4 deletions
Showing only changes of commit 6084396e0b - Show all commits

View file

@ -24,9 +24,14 @@ imageCaption: ""
</div> </div>
{% endif %} {% endif %}
{% if filteredTags | length > 0 %} {% if filteredTags | length > 0 %}
<ul class="[ categories ] [ cluster p-0 flow-space-2 line-height-m ]" <ul class="[ cluster p-0 flow-space-2 line-height-m text-fadeText ]"
role="list"> role="list">
{% for tag in filteredTags %}<li class="[ flex gap-0.25 ]">{{ tag }}</li>{% endfor %} {% for tag in filteredTags %}
<li class="[ flex gap-0.25 items-center ]">
<span class="text-border">{% include "svgs/frame.svg" %}</span>
{{ tag }}
</li>
{% endfor %}
</ul> </ul>
{% endif %} {% endif %}
</header> </header>

View file

@ -1,7 +1,7 @@
{% macro one(post, format = "MM/DD") %} {% macro one(post, fmt = "MM/DD") %}
<article class="[ posts-list-item column-gap-0.5 justify-between line-height-l ]"> <article class="[ posts-list-item column-gap-0.5 justify-between line-height-l ]">
<a href="{{ post.url }}">{{ post.data.title }}</a> <a href="{{ post.url }}">{{ post.data.title }}</a>
<time datetime="{{ post.date }}" class="[ text-fadeText ]">{{ post.date | formatDate(<built-in function format>) }}</time> <time datetime="{{ post.date }}" class="[ text-fadeText ]">{{ post.date | formatDate(fmt) }}</time>
<p class="[ text-fadeText font-size-s line-height-m ]">{{ post.data.excerpt }}</p> <p class="[ text-fadeText font-size-s line-height-m ]">{{ post.data.excerpt }}</p>
</article> </article>
{% endmacro %} {% endmacro %}