mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-23 10:41:30 +08:00
fix: build error
This commit is contained in:
@ -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>
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user