chore: post; tag list improvements; style fixes

This commit is contained in:
Cory Dransfeldt 2024-04-29 10:00:41 -07:00
parent fb74453363
commit 42b496cfcc
No known key found for this signature in database
5 changed files with 67 additions and 5 deletions

View file

@ -10,8 +10,10 @@ eleventyComputed:
---
{% assign posts = collections[tag] | reverse %}
{% for post in posts %}
{% assign author = post.data.link | stripUtm | authorLookup %}
<article class="h-entry">
<div class="flex-centered gap-xs icon-small icon-light">
{% if author %}{% tablericon "link" "Link" %}{% endif %}
{% tablericon "calendar-month" "Date" %}
<time class="dt-published" datetime="{{ post.date }}">
{{ post.date | date: "%B %e, %Y" }}
@ -20,7 +22,12 @@ eleventyComputed:
<a href="{{ post.url }}">
<h3 class="flex-centered">{{ post.data.title }}</h3>
</a>
{% if author %}via {{ author }}{% endif %}
{% if post.data.excerpt %}
<p class="p-summary">{{ post.data.post_excerpt | markdown }}</p>
{% else %}
<p class="p-summary">{{ post.data.description | markdown }}</p>
{% endif %}
<p><a href="{{ post.url }}">Read more →</a></p>
</article>
{% endfor %}