diff --git a/src/components/PostCard.astro b/src/components/PostCard.astro index 35dfdcf..534125f 100644 --- a/src/components/PostCard.astro +++ b/src/components/PostCard.astro @@ -110,7 +110,7 @@ const { remarkPluginFrontmatter } = await render(entry); + class="w-full h-full" loader> } diff --git a/src/components/misc/ImageWrapper.astro b/src/components/misc/ImageWrapper.astro index 5fb3b3e..c4e0fee 100644 --- a/src/components/misc/ImageWrapper.astro +++ b/src/components/misc/ImageWrapper.astro @@ -8,12 +8,14 @@ interface Props { alt?: string; position?: string; basePath?: string; + loader?: boolean; + blur?: boolean; } import { Image } from "astro:assets"; import { url } from "../../utils/url-utils"; -const { id, src, alt, position = "center", basePath = "/" } = Astro.props; +const { id, src, alt, position = "center", basePath = "/", loader = false, blur = false } = Astro.props; const className = Astro.props.class; const isLocal = !( @@ -51,7 +53,7 @@ const originalSrc = isLocal && img ? img.src : isPublic ? url(normalizedPublicSr const originalWidth = isLocal && img ? img.width : undefined; const originalHeight = isLocal && img ? img.height : undefined; --- -
+
{isLocal && img && {alt} {!isLocal && {alt} diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index afdbe10..3e0782c 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -679,6 +679,88 @@ window.onresize = () => { } + +