diff options
author | 2021-07-11 15:05:19 -0400 | |
---|---|---|
committer | 2021-07-11 14:05:19 -0500 | |
commit | c48acb3d84ef8b3cca1fdfa1ae5d66f6ebd1a918 (patch) | |
tree | e4e245fcdf3b14086811cd7d814e771184c89358 /examples/blog-multiple-authors/src | |
parent | d46746c34f84e46b7c2f6bd3fbb5258d4eaee6aa (diff) | |
download | astro-c48acb3d84ef8b3cca1fdfa1ae5d66f6ebd1a918.tar.gz astro-c48acb3d84ef8b3cca1fdfa1ae5d66f6ebd1a918.tar.zst astro-c48acb3d84ef8b3cca1fdfa1ae5d66f6ebd1a918.zip |
Missing `firstPage` (#658)
Diffstat (limited to 'examples/blog-multiple-authors/src')
-rw-r--r-- | examples/blog-multiple-authors/src/pages/index.astro | 1 |
1 files changed, 1 insertions, 0 deletions
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 |