[blog] /src/content/ -> /content/

[voidcannon] hydrate/nojs fixes
[pagex] fix html parser quirk
This commit is contained in:
bignutty
2026-02-18 00:32:30 +01:00
parent ab32597e33
commit 62dffa02c1
63 changed files with 55 additions and 53 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 879 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 KiB

View File

@@ -0,0 +1,75 @@
this is sample text (totk)
## Test Articles
- [playground](./[playground])
- - [playground (full theme)](./[playground-full])
- - [playground (no theme)](./[playground-gm3])
- [p3](./[playground-p3])
- [totk](./[playground-totk])
```javascript
console.log('hewwo') // [!code --]
console.log('hello') // [!code ++]
```
```js
import {VoidcannonHeaderLayoutType, VoidcannonHeaderType, VoidcannonContentType} from "voidcannon";
import bignutty from "./bignutty.pagex.js";
import testCollection from "./test.pagex.js";
import featuredCollection from "./_featured.pagex.js";// [!code error]
import {PagexResourceTransformer} from "pagex";// [!code warning]
export default { // [!code highlight]
type: VoidcannonContentType.ARTICLE, // [!code highlight]
content: { // [!code highlight]
_transform: PagexResourceTransformer.MARKDOWN, // [!code highlight]
path: "./content.md"
},
id: "playground-totk",
title: "Playground Totk Test Article",
theme: { // [!code --]
partial: true, // [!code --]
colors: { // [!code --]
light: "#4dc294", // [!code --]
dark: "#4dc294", // [!code --]
} // [!code --]
}, // [!code --]
theme: { // [!code ++]
partial: true, // [!code ++]
colors: { // [!code ++]
light: "#4dc294", // [!code ++]
dark: "#4dc294", // [!code ++]
} // [!code ++]
}, // [!code ++]
header: {
type: VoidcannonHeaderType.IMMERSIVE,
layout: VoidcannonHeaderLayoutType.EMPTY,
base: {
_transform: PagexResourceTransformer.MEDIA,
path: "./assets/header/background_totk.png"
},
immersive_content: {
right: {
outer: {
_transform: PagexResourceTransformer.MEDIA,
path: "./assets/header/immersive_right/outer.png"
},
inner: {
_transform: PagexResourceTransformer.MEDIA,
path: "./assets/header/immersive_right/inner.png"
}
}
},
color: "#4dc294"
},
authors: [bignutty],
collections: [
testCollection.id,
"rest",
featuredCollection.id
]
}
```

View File

@@ -0,0 +1,61 @@
import {
VoidcannonHeaderLayoutType,
VoidcannonHeaderType,
VoidcannonContentType,
VoidcannonVisibilityLevel
} from "voidcannon";
import testauthorPagex from "../../authors/testauthor.pagex.js";
import videogamesCollection from "../../collections/videogames.pagex.js";
import testCollection from "../../collections/test.pagex.js";
import featuredCollection from "../../collections/_featured.pagex.js";
import {PagexResourceTransformer} from "pagex";
export default {
type: VoidcannonContentType.ARTICLE,
content: {
_transform: PagexResourceTransformer.MARKDOWN,
path: "./content.md"
},
id: "playground-totk",
title: "Playground Totk Test Article",
created_at: 1757861297516,
updated_at: 1757861297516,
visibility_level: VoidcannonVisibilityLevel.HIDDEN_IN_RECENTS,
theme: {
// partial: true,
colors: {
light: "#4dc294",
dark: "#4dc294",
}
},
header: {
type: VoidcannonHeaderType.IMMERSIVE,
layout: VoidcannonHeaderLayoutType.EMPTY,
base: {
_transform: PagexResourceTransformer.MEDIA,
path: "./assets/header/background_totk.png"
},
immersive_content: {
right: {
outer: {
_transform: PagexResourceTransformer.MEDIA,
path: "./assets/header/immersive_right/outer.png"
},
inner: {
_transform: PagexResourceTransformer.MEDIA,
path: "./assets/header/immersive_right/inner.png"
}
}
},
color: "#4dc294"
},
authors: [testauthorPagex],
collections: [
videogamesCollection.id,
testCollection.id,
featuredCollection.id
]
}