Finish adding blog posts
This commit is contained in:
parent
4a3ee88f77
commit
cf180442c3
21 changed files with 178 additions and 40 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue