wikilinks fix
This commit is contained in:
parent
e5ed6a3bb4
commit
1be9c7f3d1
|
|
@ -826,6 +826,7 @@ Add `viz: true` to the frontmatter of any page using `.visualization` divs —
|
||||||
this loads the Vega CDN scripts:
|
this loads the Vega CDN scripts:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
||||||
viz: true
|
viz: true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,9 @@
|
||||||
-- * @[[Page Title|Display]]@ → @[Display](/page-title)@
|
-- * @[[Page Title|Display]]@ → @[Display](/page-title)@
|
||||||
--
|
--
|
||||||
-- The URL slug is derived from the page title: lowercased, spaces
|
-- The URL slug is derived from the page title: lowercased, spaces
|
||||||
-- replaced with hyphens, non-alphanumeric characters stripped.
|
-- replaced with hyphens, non-alphanumeric characters stripped, and
|
||||||
-- nginx's @try_files $uri $uri.html@ resolves the extension-free URL.
|
-- a @.html@ suffix appended so the link resolves identically under
|
||||||
|
-- the dev server, file:// previews, and nginx in production.
|
||||||
module Filters.Wikilinks (preprocess) where
|
module Filters.Wikilinks (preprocess) where
|
||||||
|
|
||||||
import Data.Char (isAlphaNum, toLower, isSpace)
|
import Data.Char (isAlphaNum, toLower, isSpace)
|
||||||
|
|
@ -39,7 +40,7 @@ preprocess (c:rest) = c : preprocess rest
|
||||||
toMarkdownLink :: String -> String
|
toMarkdownLink :: String -> String
|
||||||
toMarkdownLink inner =
|
toMarkdownLink inner =
|
||||||
let (title, display) = splitOnPipe inner
|
let (title, display) = splitOnPipe inner
|
||||||
url = "/" ++ slugify title
|
url = "/" ++ slugify title ++ ".html"
|
||||||
in "[" ++ escMdLinkText display ++ "](" ++ url ++ ")"
|
in "[" ++ escMdLinkText display ++ "](" ++ url ++ ")"
|
||||||
|
|
||||||
-- | Escape the minimum set of characters that would prematurely terminate
|
-- | Escape the minimum set of characters that would prematurely terminate
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,9 @@ title: Now
|
||||||
An index of my current projects and focuses across domains - research / professional, creative, miscellaneous, you name it.
|
An index of my current projects and focuses across domains - research / professional, creative, miscellaneous, you name it.
|
||||||
|
|
||||||
## Working on
|
## 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!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue