summaryrefslogtreecommitdiff
path: root/src/components/Project.astro
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-13 23:35:48 +0200
committerKyren223 <Kyren223@proton.me>2024-11-13 23:35:48 +0200
commite909da9e8410c018e1d7d3e5341d877ed186077c (patch)
treea2e0ff9d193c4b92accb61ef1b974bfae0b72263 /src/components/Project.astro
parent65e340ff8d70754da02a7f166536ced704ded3e7 (diff)
Added dotfiles to projects
Diffstat (limited to 'src/components/Project.astro')
-rw-r--r--src/components/Project.astro5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/Project.astro b/src/components/Project.astro
index c39a6bf..bacfe2a 100644
--- a/src/components/Project.astro
+++ b/src/components/Project.astro
@@ -6,9 +6,10 @@ interface Props {
title: string;
description: string;
href: string;
+ cd?: string;
}
-const { title, description, href } = Astro.props;
+const { title, description, href, cd = "cd ~/projects/" } = Astro.props;
---
<div class="flex-column">
@@ -20,6 +21,6 @@ const { title, description, href } = Astro.props;
</span>
</TerminalBorder>
<TerminalBorder header="Shell">
- <Link href={href}>cd ~/projects/{title}</Link>
+ <Link href={href}>{cd}{title}</Link>
</TerminalBorder>
</div>