mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-17 21:53:32 +09:00
added ImageMod component for image optimization
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
import { plainify } from "@/lib/utils/textConverter";
|
||||
import { Image } from "astro:assets";
|
||||
import ImageMod from "./ImageMod.astro";
|
||||
import Social from "./Social.astro";
|
||||
|
||||
const { data } = Astro.props;
|
||||
@@ -12,7 +12,7 @@ const { title, image, social } = data.data;
|
||||
>
|
||||
{
|
||||
image && (
|
||||
<Image
|
||||
<ImageMod
|
||||
class="mx-auto mb-6 rounded"
|
||||
src={image}
|
||||
alt={title}
|
||||
|
||||
Reference in New Issue
Block a user