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