diff options
Diffstat (limited to 'src/components/Project.astro')
| -rw-r--r-- | src/components/Project.astro | 5 |
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> |
