mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
chore: update to use getEntry (#8093)
This commit is contained in:
parent
53ad9efde4
commit
483ecd5027
1 changed files with 14 additions and 14 deletions
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
import { getEntryBySlug } from 'astro:content';
|
import { getEntry } from 'astro:content';
|
||||||
import Layout from '../layouts/Layout.astro';
|
import Layout from '../layouts/Layout.astro';
|
||||||
|
|
||||||
const intro = await getEntryBySlug('docs', 'intro');
|
const intro = await getEntry('docs', 'intro');
|
||||||
const { Content } = await intro.render();
|
const { Content } = await intro.render();
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue