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

@@ -3,7 +3,7 @@ import Layout from "../layouts/Layout.astro";
import TimeSince from "../components/TimeSince.astro";
---
<Layout currentPage="about">
<Layout currentPage={{ title: "about", path: "/about" }}>
<div class="text-md">
<p>
AGE: <TimeSince

View File

@@ -67,7 +67,7 @@ const projects: ProjectMetadata[] = Object.values(
.sort((a, b) => parseDate(b.date).getTime() - parseDate(a.date).getTime());
---
<Layout currentPage="home">
<Layout currentPage={{ title: "home", path: "/" }}>
<!-- <h1 class="text-2xl font-medium mb-4">projects:</h1> -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-4">