···22title: Test Post
33---
4455-import Balloon from "@components/blog/balloon.svelte";
66-75whats this about dawg
8699-<div style="padding: 15rem;"></div>
1010-1111-<div style="position: absolute">
1212- <Balloon client:load id={0} boundingWidth={300} boundingHeight={0} />
1313-</div>
77+(Vi a vis .MDX)
+10-2
src/pages/blog/[id].astro
···1010if (!post) return r404;
11111212const {
1313- data: { title },
1313+ data: { title, hasMdx },
1414} = post;
1515-const { Content } = await render(post);
1515+1616+const Content = await (async () => {
1717+ if (!hasMdx) return render(post).then((x) => x.Content);
1818+1919+ if (!post.filePath) throw new Error("Post does not have a filepath");
2020+ return import(`../../content/posts/${parse(post.filePath).name}.mdx`).then(
2121+ (x) => x.Content
2222+ );
2323+})();
1624---
17251826<Base title={title}>