diff --git a/src/components/Card.astro b/src/components/Card.astro index 8c67597..ea7ce46 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,6 +1,5 @@ --- import pb from "../lib/pb"; - const { href, title, body, image } = Astro.props; let imageURL; @@ -10,11 +9,12 @@ if (image) { ---
- + { image && ( {`Cover diff --git a/src/components/Image.astro b/src/components/Image.astro index 9b78717..5626925 100644 --- a/src/components/Image.astro +++ b/src/components/Image.astro @@ -31,9 +31,9 @@ const showNsfw = Astro.url.searchParams.has('nsfw') || false;
- {`${alt` : ""} ${artist ? `by ${artist}` : ""}`} loading="lazy" /> + {`${alt` : ""} ${artist ? `by ${artist}` : ""}`} loading="lazy" /> { alt && (