diff options
author | 2021-07-21 07:11:57 -0700 | |
---|---|---|
committer | 2021-07-21 07:11:57 -0700 | |
commit | f67e8f5f559ecb37db71fbea1b60b570bc6bfd47 (patch) | |
tree | 21678a7af13c256bf8c7fa8b539cbf7c3765ea38 /examples/blog-multiple-authors/src/pages/index.astro | |
parent | 5fcd466d95f9694a758239d254e3d81f4ed289fa (diff) | |
download | astro-f67e8f5f559ecb37db71fbea1b60b570bc6bfd47.tar.gz astro-f67e8f5f559ecb37db71fbea1b60b570bc6bfd47.tar.zst astro-f67e8f5f559ecb37db71fbea1b60b570bc6bfd47.zip |
New Collections API (#703)
* updated createCollection API
* Update examples/portfolio/src/pages/projects.astro
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
* Update docs/reference/api-reference.md
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
* fix(docs): collection doc typos (#758)
* keep cleaning up docs and adding tests
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Co-authored-by: Mark Pinero <markspinero@gmail.com>
Diffstat (limited to 'examples/blog-multiple-authors/src/pages/index.astro')
-rw-r--r-- | examples/blog-multiple-authors/src/pages/index.astro | 4 |
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> |