Finish adding blog posts

This commit is contained in:
Bad Manners 2024-09-14 09:08:58 -03:00
parent 4a3ee88f77
commit cf180442c3
No known key found for this signature in database
GPG key ID: 8C88292CCB075609
21 changed files with 178 additions and 40 deletions

View file

@ -2,7 +2,6 @@
import { Image } from "astro:assets";
import { getCollection, getEntries, type CollectionEntry } from "astro:content";
import GalleryLayout from "../layouts/GalleryLayout.astro";
import { t } from "../i18n";
import UserComponent from "../components/UserComponent.astro";
import { markdownToPlaintext } from "../utils/markdown_to_plaintext";
@ -34,13 +33,13 @@ const posts = await Promise.all(
data-tooltip
>
{post.data.thumbnail ? (
<div class="flex aspect-[630/500] max-w-[288px] justify-center">
<div class="flex aspect-square max-w-[288px] justify-center">
<Image
loading={i < 10 ? "eager" : "lazy"}
class="u-photo m-auto"
src={post.data.thumbnail}
alt={`Thumbnail for ${post.data.title}`}
width={288}
width={192}
/>
</div>
) : null}