diff --git a/examples/minimal/src/content/posts/intro.md b/examples/minimal/src/content/posts/intro.md new file mode 100644 index 000000000..cd0875583 --- /dev/null +++ b/examples/minimal/src/content/posts/intro.md @@ -0,0 +1 @@ +Hello world! diff --git a/examples/minimal/src/env.d.ts b/examples/minimal/src/env.d.ts index f964fe0cf..acef35f17 100644 --- a/examples/minimal/src/env.d.ts +++ b/examples/minimal/src/env.d.ts @@ -1 +1,2 @@ +/// /// diff --git a/examples/minimal/src/layouts/Default.astro b/examples/minimal/src/layouts/Default.astro index ad57a8b31..1fe314963 100644 --- a/examples/minimal/src/layouts/Default.astro +++ b/examples/minimal/src/layouts/Default.astro @@ -15,16 +15,31 @@ import { Outlet } from 'astro/components';

My Website

- + + +
{() => new Promise((resolve) => setTimeout(resolve, 1000))} - + + + {() => new Promise((resolve) => setTimeout(resolve, 1000))} - -
+ + - - diff --git a/examples/minimal/src/pages/index.astro b/examples/minimal/src/pages/index.astro index 5b0032ab8..bd2dbb97d 100644 --- a/examples/minimal/src/pages/index.astro +++ b/examples/minimal/src/pages/index.astro @@ -1,11 +1,18 @@ --- import Layout from '../layouts/Default.astro'; + +import { getEntryBySlug } from 'astro:content'; + +const entry = await getEntryBySlug('posts', 'intro'); +const { Content } = await entry.render(); ---

Home

Streaming partials!

+ +