From c48acb3d84ef8b3cca1fdfa1ae5d66f6ebd1a918 Mon Sep 17 00:00:00 2001 From: outcastgeek Date: Sun, 11 Jul 2021 15:05:19 -0400 Subject: [PATCH] Missing `firstPage` (#658) --- examples/blog-multiple-authors/src/pages/index.astro | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/blog-multiple-authors/src/pages/index.astro b/examples/blog-multiple-authors/src/pages/index.astro index adcf04215..0b1c95df4 100644 --- a/examples/blog-multiple-authors/src/pages/index.astro +++ b/examples/blog-multiple-authors/src/pages/index.astro @@ -16,6 +16,7 @@ let description = 'An example blog on Astro'; // Data Fetching: List all Markdown posts in the repo. let allPosts = Astro.fetchContent('./post/*.md'); allPosts.sort((a, b) => new Date(b.date) - new Date(a.date)); +let firstPage = allPosts.slice(0, 2); // Full Astro Component Syntax: // https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md