[blog] /src/content/ -> /content/
[voidcannon] hydrate/nojs fixes [pagex] fix html parser quirk
This commit is contained in:
6
content/editorial/home/content.md
Normal file
6
content/editorial/home/content.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# blognutty
|
||||
|
||||
<voidcannon-cta>
|
||||
<md-icon slot="icon">comic_bubble</md-icon>
|
||||
This site is still work-in-progress!
|
||||
</voidcannon-cta>
|
||||
43
content/editorial/home/home.pagex.js
Normal file
43
content/editorial/home/home.pagex.js
Normal file
@@ -0,0 +1,43 @@
|
||||
import {
|
||||
VoidcannonContentType,
|
||||
VoidcannonSectionType
|
||||
} from "voidcannon";
|
||||
|
||||
import {PagexResourceTransformer} from "pagex";
|
||||
import RecentContentTransformer from "voidcannon/src/transformers/RecentContent.transformer.js";
|
||||
|
||||
import recentArticles from "../recent-articles/recent-articles.pagex.js";
|
||||
|
||||
export default {
|
||||
type: VoidcannonContentType.EDITORIAL,
|
||||
id: "blognutty-index",
|
||||
slug: "index",
|
||||
name: "/home",
|
||||
description: "blognutty home",
|
||||
color: null,
|
||||
sections: [
|
||||
{
|
||||
type: VoidcannonSectionType.EDITORIAL,
|
||||
content: {
|
||||
_transform: PagexResourceTransformer.MARKDOWN,
|
||||
path: "./content.md"
|
||||
}
|
||||
},
|
||||
{
|
||||
type: VoidcannonSectionType.CONTENT_GRID,
|
||||
content: {
|
||||
_transform: RecentContentTransformer,
|
||||
amount: 9
|
||||
},
|
||||
label: "Recent Articles",
|
||||
icon: "history",
|
||||
cta: {
|
||||
label: "View All",
|
||||
target: {
|
||||
type: VoidcannonContentType.EDITORIAL,
|
||||
id: recentArticles.id
|
||||
},
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user