michalvankodev-site/axum_server/templates/components/post_preview.html

24 lines
814 B
HTML
Raw Normal View History

2024-07-09 22:16:55 +02:00
<article class="grid grid-cols-[1fr_2fr] grid-flow-col gap-4">
2024-05-09 23:26:06 +02:00
<aside class="row-span-3">
<svg aria-hidden="true" class="h-12 w-12 fill-blue-950">
<use xlink:href="/svg/icons-sprite.svg#mail" />
</svg>
</aside>
<header>
2024-07-09 22:16:55 +02:00
<h3 class="text-lg font-bold mb-1">{{post.metadata.title}}</h3>
2024-05-09 23:26:06 +02:00
</header>
2024-07-09 22:16:55 +02:00
<section class="text-base leading-5 text-gray-800">{{post.body|description_filter|safe}}</section>
<footer class="text-sm">
<ul class="inline-block">
{% for tag in post.metadata.tags %}
<li class="inline-block">
<a href="/blog/tags/{{tag}}" class="text-pink-950 no-underline">#{{tag|capitalize}}</a>
</li>
{% endfor %}
</ul>
|
<time datetime="{{post.metadata.date}}" class="text-pink-950"> {{post.metadata.date|pretty_date}} </time>
2024-05-09 23:26:06 +02:00
</footer>
</article>