Skip to content

Commit

Permalink
Update src/pages/en/guides/content-collections.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
  • Loading branch information
FredKSchott and sarah11918 authored Jan 23, 2023
1 parent 5bf17de commit 257d444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/en/guides/content-collections.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ const { Content, headings } = await entry.render();

Content collections are stored outside of the `src/pages/` directory. You will need to create a new [dynamic route](/en/core-concepts/routing/#dynamic-routes) to generate HTML pages from your collection entries. Your dynamic route will map the incoming request param (ex: `Astro.params.slug` in `src/pages/blog/[slug].astro`) to fetch the correct entry inside a collection.

The way that you do this is different, depending on your build [`output`](/en/reference/configuration-reference/#output) mode: 'static' (the default) or 'server' (for SSR).
The exact method for generating routes will depend on your build [`output`](/en/reference/configuration-reference/#output) mode: 'static' (the default) or 'server' (for SSR).

### Building for static output (default)

Expand Down

0 comments on commit 257d444

Please sign in to comment.