fix: build error

This commit is contained in:
KazooTTT
2025-02-07 17:54:51 +08:00
parent f0e2b9081e
commit b40a9adafd

View File

@ -1,5 +1,4 @@
--- ---
import { Image } from "astro:assets";
import type { CollectionEntry } from "astro:content"; import type { CollectionEntry } from "astro:content";
import FormattedDate from "@/components/FormattedDate.astro"; import FormattedDate from "@/components/FormattedDate.astro";
import Card from "../componentsBefore/Card.astro"; import Card from "../componentsBefore/Card.astro";
@ -27,14 +26,13 @@ const socialImageURL = new URL(ogImage ? ogImage : "/social-card.png", Astro.url
{ {
socialImageURL && ( socialImageURL && (
<div class="mb-6 aspect-video"> <div class="mb-6 aspect-video p-4">
<Image <img
alt={socialImageURL} alt={socialImageURL}
class="object-cover" class="rounded-lg object-cover"
fetchpriority="high" fetchpriority="high"
loading="eager" loading="eager"
src={socialImageURL} src={socialImageURL}
inferSize={true}
/> />
</div> </div>
) )