diff --git a/apply.nu b/apply.nu index 7f36f28..5836289 100755 --- a/apply.nu +++ b/apply.nu @@ -19,12 +19,12 @@ def main [] { ssh -tt nine $" cd site - LUME_DRAFTS=false nix run nixpkgs#deno -- ($deno_arguments | str join ' ') + LUME_DRAFTS=false nix run nixpkgs#deno -- ($deno_arguments | str join ' ') | ignore " sync ("nine:site/" + $dest_directory) ./ } else { - LUME_DRAFTS=false deno ...$deno_arguments + LUME_DRAFTS=false deno ...$deno_arguments | ignore } cd $dest_directory diff --git a/site.ts b/site.ts index e0afa70..cbd568a 100644 --- a/site.ts +++ b/site.ts @@ -40,7 +40,15 @@ site.data("color", color); site.add("."); -site.process([".html"], (pages) => { +site.preprocess([".html"], (pages) => + pages.forEach((page) => { + page.data.title = page.data.title ?? + page.data.basename + .replace(/-/g, " ") + .replace(/\b\w/g, (char) => char.toUpperCase()); + })); + +site.process([".html"], (pages) => pages.forEach((page) => { const document = page.document; @@ -156,14 +164,18 @@ site.process([".html"], (pages) => { footnotes.remove(); } } - }); -}); + })); site.use(extractDate()); site.use(redirects()); site.use(tailwindcss()); -site.use(codeHighlight()); +site.use(codeHighlight({ + options: { + classPrefix: "token-", + noHighlightRe: /^no-highlight$/, + }, +})); site.use(resolveUrls()); site.use(slugifyUrls({ diff --git a/site/_includes/map.vto b/site/_includes/map.vto index d3411c1..6c007ec 100644 --- a/site/_includes/map.vto +++ b/site/_includes/map.vto @@ -1,6 +1,6 @@ {{ function process(entry, toplevel = false) }}
- {{ if entry.data.title }} + {{ if entry.data.url }} -``` +```no-highlight \'. \ '. \ \\ / \ \ ===+===\X // diff --git a/site/assets/css/default.css b/site/assets/css/default.css index 558bbaa..444f01b 100644 --- a/site/assets/css/default.css +++ b/site/assets/css/default.css @@ -280,31 +280,31 @@ body { dark:bg-[#111] dark:shadow-[4px_4px_#bbb]; } - .hljs-attr { + .token-attr { @apply text-[darkblue] dark:text-[lightblue]; } - .hljs-built_in { + .token-built_in { @apply text-[darkred] dark:text-[firebrick]; } - .hljs-comment { + .token-comment { @apply italic text-[dimgray] dark:text-[darkgray]; } - .hljs-keyword { + .token-keyword { @apply text-[darkred] dark:text-[firebrick]; } - .hljs-number { + .token-number { @apply text-[darkslateblue] dark:text-[mediumslateblue]; } - .hljs-string { + .token-string { @apply text-[darkgreen] dark:text-[limegreen]; } - .hljs-symbol { + .token-symbol { @apply text-[darkgoldenrod] dark:text-[gold]; } - .hljs-title { + .token-title { @apply text-[indianred] dark:text-[lightcoral]; } - .hljs-type { + .token-type { @apply text-[darkcyan] dark:text-[aquamarine]; } } diff --git a/site/blog/2024-01-01-test.md b/site/blog/2024-01-01-test.md index abb6da3..11bf7d4 100644 --- a/site/blog/2024-01-01-test.md +++ b/site/blog/2024-01-01-test.md @@ -1,7 +1,4 @@ --- -title: Test -description: "Testing" - draft: true --- diff --git a/site/blog/2025-06-05-why-cores.md b/site/blog/2025-06-05-why-cores.md index 5a31729..7ad61b9 100644 --- a/site/blog/2025-06-05-why-cores.md +++ b/site/blog/2025-06-05-why-cores.md @@ -22,7 +22,7 @@ on, `hwmon4` under this directory corresponds to the CPU. Let's run a `tree`: -``` +```no-highlight /sys/class/hwmon/hwmon4 -> ../../devices/platform/coretemp.0/hwmon/hwmon4 ├── device -> ../../../coretemp.0 │ ├── driver_override @@ -169,7 +169,7 @@ Let's run a `tree`: Let's `cat` all the `_label` files: -``` +```no-highlight /sys/class/hwmon/hwmon4/temp1_label: Package id 0 /sys/class/hwmon/hwmon4/temp2_label: diff --git a/site/dump/site/analytics.md b/site/dump/site/analytics.md index 2bc8c25..85e7b03 100644 --- a/site/dump/site/analytics.md +++ b/site/dump/site/analytics.md @@ -1,7 +1,3 @@ ---- -title: Analytics ---- - This site and other websites under this domain run [Plausible](https://plausible.io/) analytics on a self-hosted instance at [shekels.rgbcu.be](https://shekels.rgbcu.be/). diff --git a/site/dump/site/availability.md b/site/dump/site/availability.md new file mode 100644 index 0000000..475a4bb --- /dev/null +++ b/site/dump/site/availability.md @@ -0,0 +1,3 @@ +The website of RGBCube is up. + +This webpage is **absolutely never** wrong. diff --git a/site/index.vto b/site/index.vto index 8d6a1b4..dd9acad 100644 --- a/site/index.vto +++ b/site/index.vto @@ -25,12 +25,14 @@ prevent_zoom: true nuclear ` }} +{{> const underline = `underline decoration-4 decoration-black underline-offset-9` }} + {{ set cube_face_front }} about {{ /set }} {{ set cube_face_back }} - dump + dump {{ /set }} {{ set cube_face_top }} @@ -42,7 +44,7 @@ prevent_zoom: true {{ /set }} {{ set cube_face_left }} - blog + blog {{ /set }} {{ set cube_face_bottom }}