lets generate some images

This commit is contained in:
2024-09-04 15:43:47 +02:00
parent f1b3400e63
commit 7734c03ba5
5 changed files with 57 additions and 48 deletions

View File

@ -1,11 +1,11 @@
<article class="grid grid-cols-[1fr_2fr] grid-flow-col gap-4">
<aside class="row-span-3">
<!-- TODO <figure> -->
<!-- TODO Thumbnail -->
<!-- <svg aria-hidden="true" class="h-12 w-12 fill-blue-950"> -->
<!-- <use xlink:href="/svg/icons-sprite.svg#mail" /> -->
<!-- </svg> -->
<figure>
{% match post.metadata.thumbnail %}
{% when Some with (orig_path) %}
{{ crate::picture_generator::picture_markup_generator::generate_picture_markup(orig_path, 180, 240, "Article thumbnail").unwrap()|safe }}
{% when None %}
<div> TODO default obrazok </div>
{% endmatch %}
</aside>
<header>
<h3 class="text-lg font-bold mb-1">{{post.metadata.title}}</h3>