test run
This commit is contained in:
9
src/content/editorial/home/content.md
Normal file
9
src/content/editorial/home/content.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Voidcannon
|
||||
|
||||
a modern blogging frontend, powered by **pagex**.
|
||||
|
||||
## Test Articles
|
||||
|
||||
- [playground](./playground)
|
||||
- [p3](./playground-p3)
|
||||
- [totk](./playground-totk)
|
||||
71
src/content/editorial/home/home.pagex.js
Normal file
71
src/content/editorial/home/home.pagex.js
Normal file
@@ -0,0 +1,71 @@
|
||||
import {
|
||||
VoidcannonContentType,
|
||||
VoidcannonSectionType
|
||||
} from "voidcannon";
|
||||
|
||||
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";
|
||||
|
||||
export default {
|
||||
type: VoidcannonContentType.EDITORIAL,
|
||||
id: "index",
|
||||
name: "Voidcannon Home",
|
||||
description: "Voidcannon Home",
|
||||
color: null,
|
||||
sections: [
|
||||
{
|
||||
type: VoidcannonSectionType.STORY_HERO,
|
||||
content: {
|
||||
_transform: ContentByIdentifierTransformer.id,
|
||||
content_ids: [
|
||||
playgroundP3.id,
|
||||
playground.id,
|
||||
playgroundTotk.id
|
||||
],
|
||||
// TODO: implement this
|
||||
content_types: [
|
||||
VoidcannonContentType.ARTICLE
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
type: VoidcannonSectionType.CAROUSEL,
|
||||
content: {
|
||||
_transform: CollectionContentTransformer.id,
|
||||
collection_id: "featured"
|
||||
},
|
||||
label: "Various Articles",
|
||||
target: "collections/featured"
|
||||
},
|
||||
{
|
||||
type: VoidcannonSectionType.EDITORIAL,
|
||||
content: {
|
||||
_transform: PagexResourceTransformer.MARKDOWN,
|
||||
path: "./content.md"
|
||||
}
|
||||
},
|
||||
{
|
||||
type: VoidcannonSectionType.CONTENT_GRID,
|
||||
content: {
|
||||
_transform: CollectionContentTransformer.id,
|
||||
collection_id: "test"
|
||||
},
|
||||
label: "Testing Articles",
|
||||
icon: "forklift"
|
||||
},
|
||||
{
|
||||
type: VoidcannonSectionType.CONTENT_GRID,
|
||||
content: {
|
||||
_transform: RecentContentTransformer.id,
|
||||
amount: 15
|
||||
},
|
||||
label: "Recent Articles",
|
||||
icon: "history"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user