summaryrefslogtreecommitdiff
path: root/examples/blog-multiple-authors/src/pages/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog-multiple-authors/src/pages/index.astro')
-rw-r--r--examples/blog-multiple-authors/src/pages/index.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/blog-multiple-authors/src/pages/index.astro b/examples/blog-multiple-authors/src/pages/index.astro
index e3e86e1da..ef099b7c2 100644
--- a/examples/blog-multiple-authors/src/pages/index.astro
+++ b/examples/blog-multiple-authors/src/pages/index.astro
@@ -27,7 +27,7 @@ let firstPage = allPosts.slice(0, 2);
<MainHead
title={title}
description={description}
- image={firstPage[0].image}
+ image={allPosts[0].image}
canonicalURL={Astro.request.canonicalURL.href}
/>
</head>
@@ -36,7 +36,7 @@ let firstPage = allPosts.slice(0, 2);
<Nav />
<main class="wrapper">
- {firstPage.map((post) => <PostPreview post={post} author={authorData[post.author]} />)}
+ {allPosts.map((post) => <PostPreview post={post} author={authorData[post.author]} />)}
</main>
<footer>