diff --git a/apply.nu b/apply.nu index 5836289..7f36f28 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 ' ') | ignore + LUME_DRAFTS=false nix run nixpkgs#deno -- ($deno_arguments | str join ' ') " sync ("nine:site/" + $dest_directory) ./ } else { - LUME_DRAFTS=false deno ...$deno_arguments | ignore + LUME_DRAFTS=false deno ...$deno_arguments } cd $dest_directory diff --git a/site.ts b/site.ts index cbd568a..e0afa70 100644 --- a/site.ts +++ b/site.ts @@ -40,15 +40,7 @@ site.data("color", color); site.add("."); -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) => +site.process([".html"], (pages) => { pages.forEach((page) => { const document = page.document; @@ -164,18 +156,14 @@ site.process([".html"], (pages) => footnotes.remove(); } } - })); + }); +}); site.use(extractDate()); site.use(redirects()); site.use(tailwindcss()); -site.use(codeHighlight({ - options: { - classPrefix: "token-", - noHighlightRe: /^no-highlight$/, - }, -})); +site.use(codeHighlight()); site.use(resolveUrls()); site.use(slugifyUrls({ diff --git a/site/_includes/map.vto b/site/_includes/map.vto index 6c007ec..d3411c1 100644 --- a/site/_includes/map.vto +++ b/site/_includes/map.vto @@ -1,6 +1,6 @@ {{ function process(entry, toplevel = false) }}
- {{ if entry.data.url }} + {{ if entry.data.title }} -```no-highlight +``` \'. \ '. \ \\ / \ \ ===+===\X // diff --git a/site/assets/css/default.css b/site/assets/css/default.css index 444f01b..558bbaa 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]; } - .token-attr { + .hljs-attr { @apply text-[darkblue] dark:text-[lightblue]; } - .token-built_in { + .hljs-built_in { @apply text-[darkred] dark:text-[firebrick]; } - .token-comment { + .hljs-comment { @apply italic text-[dimgray] dark:text-[darkgray]; } - .token-keyword { + .hljs-keyword { @apply text-[darkred] dark:text-[firebrick]; } - .token-number { + .hljs-number { @apply text-[darkslateblue] dark:text-[mediumslateblue]; } - .token-string { + .hljs-string { @apply text-[darkgreen] dark:text-[limegreen]; } - .token-symbol { + .hljs-symbol { @apply text-[darkgoldenrod] dark:text-[gold]; } - .token-title { + .hljs-title { @apply text-[indianred] dark:text-[lightcoral]; } - .token-type { + .hljs-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 11bf7d4..abb6da3 100644 --- a/site/blog/2024-01-01-test.md +++ b/site/blog/2024-01-01-test.md @@ -1,4 +1,7 @@ --- +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 7ad61b9..5a31729 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 85e7b03..2bc8c25 100644 --- a/site/dump/site/analytics.md +++ b/site/dump/site/analytics.md @@ -1,3 +1,7 @@ +--- +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 deleted file mode 100644 index 475a4bb..0000000 --- a/site/dump/site/availability.md +++ /dev/null @@ -1,3 +0,0 @@ -The website of RGBCube is up. - -This webpage is **absolutely never** wrong. diff --git a/site/index.vto b/site/index.vto index dd9acad..8d6a1b4 100644 --- a/site/index.vto +++ b/site/index.vto @@ -25,14 +25,12 @@ 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 }} @@ -44,7 +42,7 @@ prevent_zoom: true {{ /set }} {{ set cube_face_left }} - blog + blog {{ /set }} {{ set cube_face_bottom }}