We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c4e649 commit 72e354fCopy full SHA for 72e354f
src/pages/blog.astro
@@ -26,7 +26,7 @@ console.log(posts[0].frontmatter.image);
26
<main class="mt-16">
27
<ul class="grid gap-16 max-w-4xl mx-auto">
28
{
29
- posts.map((post) => (
+ posts.map((post, index) => (
30
<li>
31
<a href={post.url}>
32
<div class="grid md:grid-cols-2 gap-5 md:gap-10 items-center">
@@ -36,6 +36,7 @@ console.log(posts[0].frontmatter.image);
36
sizes="(max-width: 800px) 100vw, 800px"
37
aspectRatio="16:9"
38
alt="Thumbnail"
39
+ loading={index === 0 ? "eager" : "lazy"}
40
class="w-full rounded-md aspect-video"
41
/>
42
<div>
0 commit comments