{post.title}
-{post.description}
- Read more -diff --git a/reference/api-reference.md b/reference/api-reference.md deleted file mode 100644 index c3cf860bcfceb..0000000000000 --- a/reference/api-reference.md +++ /dev/null @@ -1,195 +0,0 @@ ---- -layout: ~/layouts/MainLayout.astro -title: API Reference ---- - -## `Astro` global - -The `Astro` global is available in all contexts in `.astro` files. It has the following functions: - -### `Astro.fetchContent()` - -`Astro.fetchContent()` is a way to load local `*.md` files into your static site setup. You can either use this on its own, or within [Astro Collections](/core-concepts/collections). - -```jsx -// ./src/components/my-component.astro ---- -const data = Astro.fetchContent('../pages/post/*.md'); // returns an array of posts that live at ./src/pages/post/*.md ---- - -
{post.description}
- Read more -Here is some stuff about me.
+```astro +--- +// src/pages/fred.astro +import Wrapper from '../components/Wrapper.astro'; +--- +Here is some stuff about Fred.
- Here is some stuff about me.
+```astro +--- +// src/pages/fred.astro +import Wrapper from '../components/Wrapper.astro'; +--- +
+ Here is some stuff about Fred.
+Copyright 2022
This is my fallback content, if there is no child passed into slot