From cb6aef7faef7123c55827fac8d1817e1b9bcb290 Mon Sep 17 00:00:00 2001 From: prototypa Date: Sat, 10 Sep 2022 01:08:51 -0400 Subject: [PATCH] Optimize images consumption --- src/components/blog/HighlightedPosts.astro | 9 ++++----- src/components/blog/ListItem.astro | 12 +++++------- src/components/blog/SinglePost.astro | 2 +- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/components/blog/HighlightedPosts.astro b/src/components/blog/HighlightedPosts.astro index 2bf4e7b..833be3d 100644 --- a/src/components/blog/HighlightedPosts.astro +++ b/src/components/blog/HighlightedPosts.astro @@ -1,5 +1,5 @@ --- -import Picture from "~/components/core/Picture.astro"; +import { Image } from "@astrojs/image/components"; import { findPostsByIds } from "~/utils/posts"; import { findImage } from "~/utils/images"; @@ -36,12 +36,11 @@ const items = await Promise.all( { items.map((post) => (
-

diff --git a/src/components/blog/SinglePost.astro b/src/components/blog/SinglePost.astro index 315232b..3e78b99 100644 --- a/src/components/blog/SinglePost.astro +++ b/src/components/blog/SinglePost.astro @@ -32,7 +32,7 @@ const { post } = Astro.props; }