Compress images

This commit is contained in:
2023-12-25 17:24:27 +00:00
parent cc29d23bc2
commit 04b0b2972d
460 changed files with 3181 additions and 2449 deletions
+8 -5
View File
@@ -1,9 +1,7 @@
---
import Layout from "../layouts/TitleLayout.astro";
import FrontPageLink from "../components/FrontPageLink.astro";
import { getCollection } from "astro:content";
import { defineCollection, getCollection } from "astro:content";
const allBlogPosts = await getCollection("blog");
---
@@ -22,8 +20,13 @@ const allBlogPosts = await getCollection("blog");
.map((b) => (
<FrontPageLink
href={b.slug}
title={b.data.title}
imageSrc={b.data.image}
imageData={{
title: b.data.title,
src: {
dir: b.data.dir,
name: b.data.image,
fileType: b.data.fileType
}}}
description={b.data.description}
/>
))