We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 781dda0 commit d934892Copy full SHA for d934892
src/pages/index.astro
@@ -1,5 +1,13 @@
1
---
2
+import { getEntry } from "astro:content";
3
import BaseLayout from "../layouts/BaseLayout.astro";
4
+
5
+// this is the slug for en/index.mdx in the content collection
6
+const homePage = await getEntry("text-detail", "en");
7
+const { title } = homePage.data;
8
+const { Content } = await homePage.render();
9
10
-<BaseLayout title="Index" subHeading="The main page" />
11
+<BaseLayout title={title}>
12
+ <Content />
13
+</BaseLayout>
0 commit comments