From 9f6665b2b185f2f54e42476d776873b4e1dd8f82 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Wed, 27 Nov 2024 17:38:34 -0500 Subject: [PATCH] about page --- plugin/remark-agda.ts | 11 +++-------- src/components/LeftNav.astro | 14 ++++---------- src/content/partials/shortBio.md | 12 +----------- src/pages/about.mdx | 11 +++++++++++ src/styles/leftNav.scss | 18 +++++++----------- 5 files changed, 26 insertions(+), 40 deletions(-) diff --git a/plugin/remark-agda.ts b/plugin/remark-agda.ts index 0213847..724d08f 100644 --- a/plugin/remark-agda.ts +++ b/plugin/remark-agda.ts @@ -32,7 +32,7 @@ const remarkAgda: RemarkPlugin = ({ base, publicDir }: Options) => { const path: string = history[history.length - 1]!; if (!(path.endsWith(".lagda.md") || path.endsWith(".agda"))) return; - console.log("AGDA:processing path", path); + // console.log("AGDA:processing path", path); const tempDir = mkdtempSync(join(tmpdir(), "agdaRender.")); const agdaOutDir = join(tempDir, "output"); @@ -109,10 +109,7 @@ const remarkAgda: RemarkPlugin = ({ base, publicDir }: Options) => { } } - const htmlname = basename(resolve(outputFile)).replace( - /(\.lagda)?\.md/, - ".html", - ); + const htmlname = basename(resolve(outputFile)).replace(/(\.lagda)?\.md/, ".html"); const doc = readFileSync(outputFile); @@ -168,9 +165,7 @@ const remarkAgda: RemarkPlugin = ({ base, publicDir }: Options) => { } catch (e) { // TODO: Figure out a way to handle this correctly // Possibly by diffing? - console.log( - "Mismatch in number of args. Perhaps there was an empty block?", - ); + console.log("Mismatch in number of args. Perhaps there was an empty block?"); } }; }; diff --git a/src/components/LeftNav.astro b/src/components/LeftNav.astro index b0ddbef..01d6a3c 100644 --- a/src/components/LeftNav.astro +++ b/src/components/LeftNav.astro @@ -5,7 +5,8 @@ import links from "../data/links"; import { Image } from "astro:assets"; import portrait from "../assets/self.png"; -const target = Astro.url.pathname === "/" ? "/about/" : "/"; +// const target = Astro.url.pathname === "/" ? "/about/" : "/"; +const target = "/"; ---