diff options
Diffstat (limited to 'docs/src/pages/reference')
-rw-r--r-- | docs/src/pages/reference/api-reference.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/pages/reference/api-reference.md b/docs/src/pages/reference/api-reference.md index 274f0a032..ad0afd584 100644 --- a/docs/src/pages/reference/api-reference.md +++ b/docs/src/pages/reference/api-reference.md @@ -11,9 +11,9 @@ The `Astro` global is available in all contexts in `.astro` files. It has the fo `Astro.fetchContent()` is a way to load local `*.md` files into your static site setup. -```jsx -// ./src/components/my-component.astro +```astro --- +// ./src/components/my-component.astro const data = Astro.fetchContent('../pages/post/*.md'); // returns an array of posts that live at ./src/pages/post/*.md --- |