Skip to content

Commit d934892

Browse files
authored
use a different template for the hompeage (#22)
1 parent 781dda0 commit d934892

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/pages/index.astro

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
---
2+
import { getEntry } from "astro:content";
23
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();
39
---
410

5-
<BaseLayout title="Index" subHeading="The main page" />
11+
<BaseLayout title={title}>
12+
<Content />
13+
</BaseLayout>

0 commit comments

Comments
 (0)