diff options
author | 2023-08-15 17:18:28 -0500 | |
---|---|---|
committer | 2023-08-15 17:18:28 -0500 | |
commit | 483ecd502724286d29ba8ceb78b4599105a24be7 (patch) | |
tree | 0ed1d8a042b8462e2b30948c75a231f36525787a /examples/with-markdoc/src | |
parent | 53ad9efde482b8719e988e0d1030d29437166935 (diff) | |
download | astro-483ecd502724286d29ba8ceb78b4599105a24be7.tar.gz astro-483ecd502724286d29ba8ceb78b4599105a24be7.tar.zst astro-483ecd502724286d29ba8ceb78b4599105a24be7.zip |
chore: update to use getEntry (#8093)
Diffstat (limited to 'examples/with-markdoc/src')
-rw-r--r-- | examples/with-markdoc/src/pages/index.astro | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/with-markdoc/src/pages/index.astro b/examples/with-markdoc/src/pages/index.astro index d7b41e50f..b759145b4 100644 --- a/examples/with-markdoc/src/pages/index.astro +++ b/examples/with-markdoc/src/pages/index.astro @@ -1,25 +1,25 @@ --- -import { getEntryBySlug } from 'astro:content'; +import { getEntry } from 'astro:content'; import Layout from '../layouts/Layout.astro'; -const intro = await getEntryBySlug('docs', 'intro'); +const intro = await getEntry('docs', 'intro'); const { Content } = await intro.render(); --- <Layout title={intro.data.title}> - <main> - <h1>{intro.data.title}</h1> - <Content /> - </main> + <main> + <h1>{intro.data.title}</h1> + <Content /> + </main> </Layout> <style is:global> - table { - margin-block: 2rem; - margin-inline: auto; - } - table td { - padding-block: 0.3rem; - padding-inline: 0.5rem; - } + table { + margin-block: 2rem; + margin-inline: auto; + } + table td { + padding-block: 0.3rem; + padding-inline: 0.5rem; + } </style> |