Skip to content

Commit

Permalink
docs: Content Layer API Example small fix (#11814)
Browse files Browse the repository at this point in the history
* Update astro.ts

small fix to example

* Create odd-otters-look.md

---------

Co-authored-by: Reuben Tier <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
3 people authored Aug 27, 2024
1 parent b81b703 commit 2bb72c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/odd-otters-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
astro: patch
---

Updates the documentation for experimental Content Layer API with a corrected code example
2 changes: 1 addition & 1 deletion packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2311,7 +2311,7 @@ export interface AstroUserConfig {
*
* const post = await getEntry('blog', Astro.params.slug);
*
* const { Content, headings } = await render(entry);
* const { Content, headings } = await render(post);
* ---
*
* <Content />
Expand Down

0 comments on commit 2bb72c6

Please sign in to comment.