feat: old posts banners

This commit is contained in:
Cory Dransfeldt 2024-01-10 14:08:10 -08:00
parent 6e0f47f18f
commit 7d9d1ca3d2
No known key found for this signature in database
7 changed files with 42 additions and 13 deletions

View file

@ -12,20 +12,12 @@ schema: blog
</style>
<div class="default__wrapper">
<article class="h-entry" data-pagefind-body>
{% if link %}
<a class="no-underline" href="{{ link }}">
<h2 class="flex--centered" data-pagefind-meta="title">
{% tablericon 'link' title %}
{{ title }}
</h2>
</a>
{% else %}
<h2 class="p-name" data-pagefind-meta="title">{{ title }}</h2>
{% endif %}
<h2 class="p-name" data-pagefind-meta="title">{{ title }}</h2>
<span class="p-author h-card hidden">{{ meta.author }}</span>
<time class="dt-published" datetime="{{ date }}">{{ date | readableDate }}</time>
<div class="p-summary hidden">{{ post_excerpt }}</div>
<div class="e-content">
{% render "partials/banner-old-post.liquid", date: date %}
{{ content }}
</div>
</article>