aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/fixtures/mdx-images/src/pages/content-collection.astro
blob: 68a3fe3baba51429dd3a61be795d8ced3cc5646e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
import { getEntry, render } from 'astro:content';
import MyImage from 'src/components/MyImage.astro';

const entry = await getEntry('blog', 'entry');
const { Content } = await render(entry)
---

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Renderer</title>
</head>
<body>
	<Content components={{ img: MyImage }} />
</body>
</html>