From d344924a1d72231bffcaab13c25520f8ca08f193 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Fri, 20 Sep 2024 12:52:03 -0500 Subject: [PATCH] make the title image redirect to about --- src/components/LeftNav.astro | 10 ++++++++-- src/styles/leftNav.scss | 19 ++++++++++++++++++- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/components/LeftNav.astro b/src/components/LeftNav.astro index 30041b4..e75e782 100644 --- a/src/components/LeftNav.astro +++ b/src/components/LeftNav.astro @@ -4,15 +4,21 @@ import { Content as ShortBio } from "../content/partials/shortBio.md"; import links from "../data/links"; import { Image } from "astro:assets"; import portrait from "../assets/self.png"; + +const target = Astro.url.pathname === "/" ? "/about/" : "/"; ---