73fcc7627e
* fix: handle array of tree nodes * test: render null in document node * chore: lock * refactor: consolidate render test logic * chore: changeset
19 lines
417 B
Text
19 lines
417 B
Text
---
|
|
import { getEntryBySlug } from "astro:content";
|
|
|
|
const post = await getEntryBySlug('blog', 'render-null');
|
|
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>
|