mirror of
https://github.com/withastro/astro.git
synced 2025-04-07 23:41:43 -05:00
docs: Content Layer API Example small fix (#11814)
* Update astro.ts small fix to example * Create odd-otters-look.md --------- Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
This commit is contained in:
parent
b81b70332d
commit
2bb72c6396
2 changed files with 6 additions and 1 deletions
5
.changeset/odd-otters-look.md
Normal file
5
.changeset/odd-otters-look.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
astro: patch
|
||||
---
|
||||
|
||||
Updates the documentation for experimental Content Layer API with a corrected code example
|
|
@ -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 />
|
||||
|
|
Loading…
Add table
Reference in a new issue