From 1be9c7f3d11111879a2f894e142c634642138775 Mon Sep 17 00:00:00 2001 From: Levi Neuwirth Date: Sat, 11 Apr 2026 15:45:46 -0400 Subject: [PATCH] wikilinks fix --- WRITING.md | 1 + build/Filters/Wikilinks.hs | 7 ++++--- content/current.md | 7 ++++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/WRITING.md b/WRITING.md index 75c273d..b13bc6b 100644 --- a/WRITING.md +++ b/WRITING.md @@ -826,6 +826,7 @@ Add `viz: true` to the frontmatter of any page using `.visualization` divs — this loads the Vega CDN scripts: ```yaml + viz: true ``` diff --git a/build/Filters/Wikilinks.hs b/build/Filters/Wikilinks.hs index 2d4b118..b021979 100644 --- a/build/Filters/Wikilinks.hs +++ b/build/Filters/Wikilinks.hs @@ -9,8 +9,9 @@ -- * @[[Page Title|Display]]@ → @[Display](/page-title)@ -- -- The URL slug is derived from the page title: lowercased, spaces --- replaced with hyphens, non-alphanumeric characters stripped. --- nginx's @try_files $uri $uri.html@ resolves the extension-free URL. +-- replaced with hyphens, non-alphanumeric characters stripped, and +-- a @.html@ suffix appended so the link resolves identically under +-- the dev server, file:// previews, and nginx in production. module Filters.Wikilinks (preprocess) where import Data.Char (isAlphaNum, toLower, isSpace) @@ -39,7 +40,7 @@ preprocess (c:rest) = c : preprocess rest toMarkdownLink :: String -> String toMarkdownLink inner = let (title, display) = splitOnPipe inner - url = "/" ++ slugify title + url = "/" ++ slugify title ++ ".html" in "[" ++ escMdLinkText display ++ "](" ++ url ++ ")" -- | Escape the minimum set of characters that would prematurely terminate diff --git a/content/current.md b/content/current.md index 9cb4ef9..8480ab2 100644 --- a/content/current.md +++ b/content/current.md @@ -4,4 +4,9 @@ title: Now An index of my current projects and focuses across domains - research / professional, creative, miscellaneous, you name it. ## Working on -My main project at this time is the redesign of this website. This page will be expanded once the website itself is done! + +### Levshell +I am working on a comprehensive rewrite of Levshell, my productivity and research-focused shell for Linux (running Wayland). This is a major focus of mine over the summer of 2026 as I prepare to begin my graduate program in Computer Science. + +### "Pmacs" +I'm writing an IDE that is heavily inspired by Emacs, but written in a more modern programming language (Zig) with more powerful features, and, yes, parallelism!