tags on post header

This commit is contained in:
2024-03-03 19:39:28 +01:00
parent 33e9f6b95e
commit 1740bf5a70
4 changed files with 31 additions and 7 deletions

View File

@ -6,10 +6,17 @@
<article>
<header class="px-4">
<h1 class="text-3xl text-blue-900 mb-3">{{title}}</h1>
<section class="created-at m-1 text-right text-sm text-gray-600">
<span>Published on</span>
<time datetime="{date}"> {{date|pretty_date}} </time>
</section>
<aside class="flex justify-around flex-row">
<section class="">
{% for tag in tags %}
<a href="/blog/tags/{{tag}}" class="text-blue-700">#{{tag}}</a>
{% endfor %}
</section>
<section class="created-at m-1 text-right text-sm text-gray-600">
<span>Published on</span>
<time datetime="{date}"> {{date|pretty_date}} </time>
</section>
</aside>
</header>
<section class="article-body">

View File

@ -12,9 +12,7 @@
<ul>
{% for post in posts %}
<li class="my-12">
{% include "post_preview_card.html" %} {#
<ArticlePreviewCard {article} {segment} /> #} {#
<ArticleFooter {article} {segment} /> #}
{% include "post_preview_card.html" %}
</li>
{% endfor %}
</ul>