summaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-12 22:33:11 +0200
committerKyren223 <Kyren223@proton.me>2024-11-12 22:33:11 +0200
commit6d3da9537200e4029d3c9e1b6140f601642f26da (patch)
tree4454964a5910cacf6bef160ec7d679b6aa08eaa2 /src/layouts
parent506d97a7d16fa186beee3eda314492d9297e90c5 (diff)
Backup
Diffstat (limited to 'src/layouts')
-rw-r--r--src/layouts/Layout.astro12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index d8e68d1..26a8e13 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -1,11 +1,12 @@
---
import "../styles/terminal.css";
+import Nav from "../components/Nav.astro";
interface Props {
- title: string;
+ dir: string;
}
-const { title } = Astro.props;
+const { dir: title } = Astro.props;
---
<!doctype html>
@@ -16,9 +17,12 @@ const { title } = Astro.props;
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
- <title>{title}</title>
+ <title>/home/kyren/{title}</title>
</head>
<body>
- <slot />
+ <main>
+ <Nav path={title} />
+ <slot />
+ </main>
</body>
</html>