mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-08 02:33:02 +00:00
improved current page handling
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user