diff --git a/site.ts b/site.ts index ed798b2..cbd568a 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; + const document = page.document; document.querySelectorAll("table").forEach((element) => { const wrapper = document.createElement("div"); @@ -145,6 +145,7 @@ 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; @@ -176,31 +177,6 @@ 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 9382ce0..6c007ec 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 867dee8..e74e17d 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 who 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 that 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 138fb03..444f01b 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(ul) { + &:not(ol, ul) { @apply space-y-3; } } @@ -249,10 +249,6 @@ body { ol { & li { counter-increment: item; - - > * { - @apply inline; - } } & li::before { @@ -284,17 +280,6 @@ 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]; } @@ -307,9 +292,6 @@ 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 deleted file mode 100644 index cec3aac..0000000 Binary files a/site/assets/images/nginix-morbius.webp and /dev/null differ diff --git a/site/assets/images/nixpkgs-nginx-etag.webp b/site/assets/images/nixpkgs-nginx-etag.webp deleted file mode 100644 index faef292..0000000 Binary files a/site/assets/images/nixpkgs-nginx-etag.webp and /dev/null differ diff --git a/site/blog.vto b/site/blog.vto index c7bd9ea..33cfdc1 100644 --- a/site/blog.vto +++ b/site/blog.vto @@ -18,7 +18,7 @@ Blog Articles