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 = "/"; ---