chore: post; tag list improvements; style fixes
This commit is contained in:
parent
fb74453363
commit
42b496cfcc
5 changed files with 67 additions and 5 deletions
|
@ -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 %}
|
Reference in a new issue