Skip to content

Commit

Permalink
feat: つけ忘れていたslugを付与
Browse files Browse the repository at this point in the history
  • Loading branch information
吉野敬太郎 authored and 吉野敬太郎 committed Sep 18, 2024
1 parent 52f811a commit 4c43fd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/post/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ export async function getStaticPaths() {
}));
}
const { entry } = Astro.props;
const { slug } = Astro.params;
const { Content } = await entry.render();
---
<PostLayout title={entry.data.title} description={entry.data.description} createdAt={entry.data.createdAt}>
<PostLayout title={entry.data.title} description={entry.data.description} createdAt={entry.data.createdAt} slug={slug} >
<Content />
</PostLayout>

0 comments on commit 4c43fd6

Please sign in to comment.