improved current page handling

This commit is contained in:
Oliver Bryan
2025-09-28 21:38:27 +01:00
parent 021b617060
commit 571edfcf00
5 changed files with 51 additions and 8 deletions

View File

@@ -32,7 +32,12 @@ const { metadata } = Astro.props;
}
</style>
<Layout currentPage="projects">
<Layout
currentPage={{
title: `${metadata.title}`,
path: `projects/${metadata.slug}`,
}}
>
<div class="text-md">
<h1 class="text-2xl text-ayu-accent mb-2">
{metadata.title}