Skip to content

Commit

Permalink
Fred's edit pass on content collections guide (#2371)
Browse files Browse the repository at this point in the history
* content collections docs pass

* update link from api-reference page

* updates for getEntryBySlug incl code examples

* Update content-collections.mdx

* fred pass 3

* update bad links

* update bad links

* update bad links

* Update src/pages/en/guides/content-collections.mdx

Co-authored-by: Sarah Rainsberger <[email protected]>

* Update src/pages/en/guides/content-collections.mdx

Co-authored-by: Sarah Rainsberger <[email protected]>

* update copy

* Update src/pages/en/guides/content-collections.mdx

Co-authored-by: Sarah Rainsberger <[email protected]>

* Update src/pages/en/guides/content-collections.mdx

Co-authored-by: Sarah Rainsberger <[email protected]>

* Update src/pages/en/guides/content-collections.mdx

Co-authored-by: Sarah Rainsberger <[email protected]>

* Update src/pages/en/guides/content-collections.mdx

Co-authored-by: Sarah Rainsberger <[email protected]>

* Update src/pages/en/guides/content-collections.mdx

Co-authored-by: Sarah Rainsberger <[email protected]>

* update docs

* update docs

Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
FredKSchott and sarah11918 authored Jan 23, 2023
1 parent b0def46 commit 953c3a4
Show file tree
Hide file tree
Showing 6 changed files with 297 additions and 306 deletions.
2 changes: 1 addition & 1 deletion src/i18n/en/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default [
},
{ text: 'Authoring Content', slug: 'guides/content', key: 'guides/content' },
{
text: 'Content Collections (Experimental)',
text: 'Content Collections',
slug: 'guides/content-collections',
key: 'guides/content-collections',
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/en/core-concepts/astro-pages.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Astro supports the following file types in the `src/pages/` directory:

Astro leverages a routing strategy called **file-based routing**. Each file in your `src/pages/` directory becomes an endpoint on your site based on its file path.

A single file can also generate multiple pages using [dynamic routing](/en/core-concepts/routing/#dynamic-routes). This allows you to create pages even if your content lives outside of the special `/pages/` directory, such as in a [content collection](/en/guides/content-collections/#rendering-entry-content) or a [CMS](/en/guides/cms/).
A single file can also generate multiple pages using [dynamic routing](/en/core-concepts/routing/#dynamic-routes). This allows you to create pages even if your content lives outside of the special `/pages/` directory, such as in a [content collection](/en/guides/content-collections/) or a [CMS](/en/guides/cms/).

📚 Read more about [Routing in Astro](/en/core-concepts/routing/).

Expand Down
Loading

0 comments on commit 953c3a4

Please sign in to comment.