content: update content

voidcannon: style fixes, article layout fixes (check if properties exist)
This commit is contained in:
bignutty
2025-11-04 16:03:41 +01:00
parent a52cd43b76
commit 61a32020a0
6 changed files with 25 additions and 9 deletions

View File

@@ -0,0 +1 @@
This article is configured to have the bare minimum of what's required for it to render properly.

View File

@@ -0,0 +1,17 @@
import {VoidcannonContentType} from "voidcannon";
import placeholder from "../../authors/placeholder.pagex.js";
import {PagexResourceTransformer} from "pagex";
export default {
type: VoidcannonContentType.ARTICLE,
content: {
_transform: PagexResourceTransformer.MARKDOWN,
path: "./content.md"
},
id: "playground-empty",
title: "Playground Empty Article",
created_at: 1762267626610,
authors: [placeholder]
}

View File

@@ -1,5 +1,3 @@
# Persona 3 Reload
this is sample text (p3)
## Test Articles

View File

@@ -1,5 +1,3 @@
# The Legend of Zelda: Tears of the Kingdom
this is sample text (totk)
## Test Articles

View File

@@ -7,10 +7,12 @@ import {PagexResourceTransformer} from "pagex";
import CollectionContentTransformer from "voidcannon/src/transformers/CollectionContent.transformer.js";
import RecentContentTransformer from "voidcannon/src/transformers/RecentContent.transformer.js";
import ContentByIdentifierTransformer from "voidcannon/src/transformers/ContentByIdentifier.transformer.js";
import playground from "../../articles/playground/playground.pagex.js";
import playgroundP3 from "../../articles/playground-p3/playground-p3.pagex.js";
import playgroundTotk from "../../articles/playground-totk/playground-totk.pagex.js";
import recentArticlesPagex from "../recent-articles/recent-articles.pagex.js";
import playgroundEmpty from "../../articles/playground-empty/playground-empty.pagex.js";
import recentArticles from "../recent-articles/recent-articles.pagex.js";
export default {
type: VoidcannonContentType.EDITORIAL,
@@ -26,8 +28,8 @@ export default {
_transform: ContentByIdentifierTransformer,
content_ids: [
playground.id,
playgroundEmpty.id,
playgroundP3.id,
playgroundTotk.id
],
// TODO: implement this
content_types: [
@@ -70,7 +72,7 @@ export default {
label: "View All",
target: {
type: VoidcannonContentType.EDITORIAL,
id: recentArticlesPagex.id
id: recentArticles.id
},
}
},