content: update content
voidcannon: style fixes, article layout fixes (check if properties exist)
This commit is contained in:
1
src/content/articles/playground-empty/content.md
Normal file
1
src/content/articles/playground-empty/content.md
Normal file
@@ -0,0 +1 @@
|
||||
This article is configured to have the bare minimum of what's required for it to render properly.
|
||||
@@ -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]
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
# Persona 3 Reload
|
||||
|
||||
this is sample text (p3)
|
||||
|
||||
## Test Articles
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# The Legend of Zelda: Tears of the Kingdom
|
||||
|
||||
this is sample text (totk)
|
||||
|
||||
## Test Articles
|
||||
|
||||
@@ -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
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
Submodule voidcannon updated: e781f24aac...7edcd34195
Reference in New Issue
Block a user