diff --git a/pagex b/pagex index 327ebd1..059956a 160000 --- a/pagex +++ b/pagex @@ -1 +1 @@ -Subproject commit 327ebd163f6dc0ad06b4de4ebfba29f8e11c5013 +Subproject commit 059956a48acfab97020fc77acf81cc71dd8d96e7 diff --git a/src/content/articles/playground-gm3/playground-gm3.pagex.js b/src/content/articles/playground-gm3/playground-gm3.pagex.js index 57e273d..9579968 100644 --- a/src/content/articles/playground-gm3/playground-gm3.pagex.js +++ b/src/content/articles/playground-gm3/playground-gm3.pagex.js @@ -22,7 +22,7 @@ export default { label: "Article Title (gm3)", base: { _transform: PagexResourceTransformer.MEDIA, - path: "../playground/assets/header/background.png" + path: "../playground/assets/header/background-street.png" }, immersive_content: { left: { diff --git a/src/content/editorial/home/home.pagex.js b/src/content/editorial/home/home.pagex.js index 62b7f84..746da6c 100644 --- a/src/content/editorial/home/home.pagex.js +++ b/src/content/editorial/home/home.pagex.js @@ -10,6 +10,7 @@ import ContentByIdentifierTransformer from "voidcannon/src/transformers/ContentB 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"; export default { type: VoidcannonContentType.EDITORIAL, @@ -64,7 +65,14 @@ export default { amount: 15 }, label: "Recent Articles", - icon: "history" + icon: "history", + cta: { + label: "View All", + target: { + type: VoidcannonContentType.EDITORIAL, + id: recentArticlesPagex.id + }, + } }, { type: VoidcannonSectionType.CAROUSEL, diff --git a/src/content/editorial/recent-articles/recent-articles.pagex.js b/src/content/editorial/recent-articles/recent-articles.pagex.js new file mode 100644 index 0000000..a2c242c --- /dev/null +++ b/src/content/editorial/recent-articles/recent-articles.pagex.js @@ -0,0 +1,38 @@ +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: "voidcannon-recent", + slug: "recent-articles", + paging: { + entries: { + _transform: RecentContentTransformer, + }, + per_page: 3 + }, + name: "Recent Articles", + description: "Recent Articles", + color: null, + sections: [ + { + type: VoidcannonSectionType.CONTENT_GRID, + content: "$paginationItems", + label: "Recent Articles", + icon: "history" + }, + { + type: VoidcannonSectionType.PAGINATOR + } + ] +} \ No newline at end of file diff --git a/voidcannon b/voidcannon index 5be4427..236c4f2 160000 --- a/voidcannon +++ b/voidcannon @@ -1 +1 @@ -Subproject commit 5be4427d28bb45438767c9d0e08d48af9e7c0779 +Subproject commit 236c4f233d1582baf00ce898f903216adcb99ead