Compress images
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user