1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-02 14:07:47 +00:00

Compare commits

..

No commits in common. "eedc332bbedddb9876957dc5960ea6f9b6dd0db6" and "9d0ebe5eb668a5f47591c1c5c6f318e5ebff6527" have entirely different histories.

10 changed files with 28 additions and 38 deletions

View file

@ -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

20
site.ts
View file

@ -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({

View file

@ -1,6 +1,6 @@
{{ function process(entry, toplevel = false) }}
<div class="relative p-4{{ if !toplevel }} my-4 md:mx-8{{ /if }} border-1 bg-white dark:bg-black">
{{ if entry.data.url }}
{{ if entry.data.title }}
<a
class="
reset

View file

@ -5,7 +5,7 @@ title: A B O U T
<div class="flex justify-center">
```no-highlight
```
\'.
\ '. \ \\ /
\ \ ===+===\X //

View file

@ -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];
}
}

View file

@ -1,4 +1,7 @@
---
title: Test
description: "Testing"
draft: true
---

View file

@ -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:

View file

@ -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/).

View file

@ -1,3 +0,0 @@
The website of RGBCube is up.
This webpage is **absolutely never** wrong.

View file

@ -25,14 +25,12 @@ prevent_zoom: true
nuclear
` }}
{{> const underline = `underline decoration-4 decoration-black underline-offset-9` }}
{{ set cube_face_front }}
<a draggable="false" class="{{ style }}" href="/about/">about</a>
{{ /set }}
{{ set cube_face_back }}
<a draggable="false" class="{{ style }} {{ underline }}" href="/dump/">dump</a>
<a draggable="false" class="{{ style }}" href="/dump/">dump</a>
{{ /set }}
{{ set cube_face_top }}
@ -44,7 +42,7 @@ prevent_zoom: true
{{ /set }}
{{ set cube_face_left }}
<a draggable="false" class="{{ style }} {{ underline }}" href="/blog/">blog</a>
<a draggable="false" class="{{ style }}" href="/blog/">blog</a>
{{ /set }}
{{ set cube_face_bottom }}