diff --git a/src/components/blog/SinglePost.astro b/src/components/blog/SinglePost.astro index b0d682c..b4121c5 100644 --- a/src/components/blog/SinglePost.astro +++ b/src/components/blog/SinglePost.astro @@ -28,7 +28,10 @@ const { post, url } = Astro.props; widths={[400, 900]} sizes="(max-width: 900px) 400px, 900px" alt={post.description} - aspectRatio="16:9" + loading="eager" + aspectRatio={16/9} + width={900} + height={506} /> ) : (
@@ -47,7 +50,7 @@ const { post, url } = Astro.props;
diff --git a/src/components/widgets/Hero.astro b/src/components/widgets/Hero.astro index 081a73d..f48188e 100644 --- a/src/components/widgets/Hero.astro +++ b/src/components/widgets/Hero.astro @@ -51,8 +51,10 @@ import { Picture } from '@astrojs/image/components' widths={[400, 768, 1480]} sizes="(max-width: 767px) 400px, (max-width: 1479px) 768px, 1480px" alt="Hero Image" - aspectRatio="16:9" + aspectRatio={1480/833} loading="eager" + width={1480} + height={833} />