diff options
author | 2024-08-27 03:17:30 -0700 | |
---|---|---|
committer | 2024-08-27 11:17:30 +0100 | |
commit | 2bb72c63969f8f21dd279fa927c32f192ff79a3f (patch) | |
tree | fcc765d4fe81a83fa50316e4b310f778fb87bf0b | |
parent | b81b70332d639ac0522cebfa11771aa5d8c81f7c (diff) | |
download | astro-2bb72c63969f8f21dd279fa927c32f192ff79a3f.tar.gz astro-2bb72c63969f8f21dd279fa927c32f192ff79a3f.tar.zst astro-2bb72c63969f8f21dd279fa927c32f192ff79a3f.zip |
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>
-rw-r--r-- | .changeset/odd-otters-look.md | 5 | ||||
-rw-r--r-- | packages/astro/src/@types/astro.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/odd-otters-look.md b/.changeset/odd-otters-look.md new file mode 100644 index 000000000..18f2be20d --- /dev/null +++ b/.changeset/odd-otters-look.md @@ -0,0 +1,5 @@ +--- +astro: patch +--- + +Updates the documentation for experimental Content Layer API with a corrected code example diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 182345112..5e060ec99 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -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 /> |