diff --git a/site.ts b/site.ts index cbd568a..ed798b2 100644 --- a/site.ts +++ b/site.ts @@ -50,7 +50,7 @@ site.preprocess([".html"], (pages) => site.process([".html"], (pages) => pages.forEach((page) => { - const document = page.document; + const { document } = page; document.querySelectorAll("table").forEach((element) => { const wrapper = document.createElement("div"); @@ -145,7 +145,6 @@ site.process([".html"], (pages) => if (addFooter) { const hr = document.createElement("hr"); - hr.classList.add("my-1.5"); const li = document.createElement("li"); li.id = footnoteId; @@ -177,6 +176,31 @@ site.use(codeHighlight({ }, })); +site.process([".html"], (pages) => + pages.forEach((page) => { + const { document } = page; + + document.querySelectorAll("pre code").forEach((code) => { + const matches = code.innerHTML.match(/\{\[\([^\)]+\)\]\}/g); + if (!matches) return; + console.log(matches); + + let newHTML = code.innerHTML; + + matches.forEach((match) => { + console.log( + `${match.replaceAll(/[^\d]/g, "")}`, + ); + newHTML = newHTML.replace( + match, + `${match.replaceAll(/[^\d]/g, "")}`, + ); + }); + + code.innerHTML = newHTML; + }); + })); + site.use(resolveUrls()); site.use(slugifyUrls({ extensions: "*", diff --git a/site/_includes/map.vto b/site/_includes/map.vto index 6c007ec..9382ce0 100644 --- a/site/_includes/map.vto +++ b/site/_includes/map.vto @@ -24,7 +24,7 @@ class=" absolute inset-0 p-4 - + bg-[repeating-linear-gradient(-45deg,transparent_0rem,transparent_1rem,#ddd_1rem,#ddd_2rem)] dark:bg-[repeating-linear-gradient(-45deg,transparent_0rem,transparent_1rem,#222_1rem,#222_2rem)] " diff --git a/site/about.md b/site/about.md index e74e17d..867dee8 100644 --- a/site/about.md +++ b/site/about.md @@ -21,8 +21,8 @@ title: A B O U T Hey. -I'm a systems programmer that loves functional programming and is trying to -apply ideals of it in certain areas. Currently I'm working on the +I'm a systems programmer who loves functional programming and is trying to apply +ideals of it in certain areas. Currently I'm working on the [Cab contextful-expression language](https://github.com/cull-os/carcass/tree/master/cab). I plan on creating a build system that uses Cab to build anything and diff --git a/site/assets/css/default.css b/site/assets/css/default.css index 444f01b..138fb03 100644 --- a/site/assets/css/default.css +++ b/site/assets/css/default.css @@ -136,7 +136,7 @@ body { * { @apply wrap-break-word text-pretty; - &:not(ol, ul) { + &:not(ul) { @apply space-y-3; } } @@ -249,6 +249,10 @@ body { ol { & li { counter-increment: item; + + > * { + @apply inline; + } } & li::before { @@ -280,6 +284,17 @@ body { dark:bg-[#111] dark:shadow-[4px_4px_#bbb]; } + .callout { + @apply px-2.5 py-1 select-none text-white bg-black dark:text-black + dark:bg-white; + } + + .token-addition { + @apply text-[green] dark:text-[mediumspringgreen]; + } + .token-deletion { + @apply text-[maroon] dark:text-[crimson]; + } .token-attr { @apply text-[darkblue] dark:text-[lightblue]; } @@ -292,6 +307,9 @@ body { .token-keyword { @apply text-[darkred] dark:text-[firebrick]; } + .token-meta { + @apply text-[darkmagenta] dark:text-[orchid]; + } .token-number { @apply text-[darkslateblue] dark:text-[mediumslateblue]; } diff --git a/site/assets/images/nginix-morbius.webp b/site/assets/images/nginix-morbius.webp new file mode 100644 index 0000000..cec3aac Binary files /dev/null and b/site/assets/images/nginix-morbius.webp differ diff --git a/site/assets/images/nixpkgs-nginx-etag.webp b/site/assets/images/nixpkgs-nginx-etag.webp new file mode 100644 index 0000000..faef292 Binary files /dev/null and b/site/assets/images/nixpkgs-nginx-etag.webp differ diff --git a/site/blog.vto b/site/blog.vto index 33cfdc1..c7bd9ea 100644 --- a/site/blog.vto +++ b/site/blog.vto @@ -18,7 +18,7 @@ Blog Articles