summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test/fixtures/render-with-components/src/pages/index.astro
blob: 52239acce73e8b6578cc52f33ae88e2e4e4c7552 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
import { getEntryBySlug } from "astro:content";

const post = await getEntryBySlug('blog', 'with-components');
const { Content } = await post.render();
---

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Content</title>
</head>
<body>
	<Content />	
</body>
</html>