From 49d22783865cdc4bcbc0581e37ebab8e9a2f43d9 Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Sat, 15 Nov 2025 01:38:00 +0100 Subject: [PATCH] voidcannon: support icons for author avatars content: migrate test articles to test author --- .../articles/playground-full/playground-full.pagex.js | 4 ++-- .../articles/playground-gm3/playground-gm3.pagex.js | 4 ++-- .../articles/playground-p3/playground-p3.pagex.js | 4 ++-- .../articles/playground-totk/playground-totk.pagex.js | 4 ++-- src/content/articles/playground/playground.pagex.js | 3 ++- src/content/authors/testauthor.pagex.js | 9 +++------ voidcannon | 2 +- 7 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/content/articles/playground-full/playground-full.pagex.js b/src/content/articles/playground-full/playground-full.pagex.js index ea921ea..b383b7f 100644 --- a/src/content/articles/playground-full/playground-full.pagex.js +++ b/src/content/articles/playground-full/playground-full.pagex.js @@ -5,7 +5,7 @@ import { VoidcannonEmojiStyle, VoidcannonVisibilityLevel } from "voidcannon"; -import bignutty from "../../authors/bignutty.pagex.js"; +import testauthorPagex from "../../authors/testauthor.pagex.js"; import testCollection from "../../collections/test.pagex.js"; import featuredCollection from "../../collections/_featured.pagex.js"; @@ -59,7 +59,7 @@ export default { }, color: "#D02843" }, - authors: [bignutty], + authors: [testauthorPagex], collections: [ testCollection.id, featuredCollection.id diff --git a/src/content/articles/playground-gm3/playground-gm3.pagex.js b/src/content/articles/playground-gm3/playground-gm3.pagex.js index cc9df25..49eb4f1 100644 --- a/src/content/articles/playground-gm3/playground-gm3.pagex.js +++ b/src/content/articles/playground-gm3/playground-gm3.pagex.js @@ -5,7 +5,7 @@ import { VoidcannonEmojiStyle, VoidcannonVisibilityLevel } from "voidcannon"; -import bignutty from "../../authors/bignutty.pagex.js"; +import testauthorPagex from "../../authors/testauthor.pagex.js"; import testCollection from "../../collections/test.pagex.js"; import featuredCollection from "../../collections/_featured.pagex.js"; @@ -51,7 +51,7 @@ export default { }, color: "#c7f718" }, - authors: [bignutty], + authors: [testauthorPagex], collections: [ testCollection.id, featuredCollection.id diff --git a/src/content/articles/playground-p3/playground-p3.pagex.js b/src/content/articles/playground-p3/playground-p3.pagex.js index ec55cdb..adcef39 100644 --- a/src/content/articles/playground-p3/playground-p3.pagex.js +++ b/src/content/articles/playground-p3/playground-p3.pagex.js @@ -5,7 +5,7 @@ import { VoidcannonVisibilityLevel } from "voidcannon"; -import bignutty from "../../authors/bignutty.pagex.js"; +import testauthorPagex from "../../authors/testauthor.pagex.js"; import videogamesCollection from "../../collections/videogames.pagex.js"; import testCollection from "../../collections/test.pagex.js"; @@ -62,7 +62,7 @@ export default { }, color: "#0eb1f4" }, - authors: [bignutty], + authors: [testauthorPagex], collections: [ videogamesCollection.id, testCollection.id, diff --git a/src/content/articles/playground-totk/playground-totk.pagex.js b/src/content/articles/playground-totk/playground-totk.pagex.js index 1cc4994..e96a209 100644 --- a/src/content/articles/playground-totk/playground-totk.pagex.js +++ b/src/content/articles/playground-totk/playground-totk.pagex.js @@ -5,7 +5,7 @@ import { VoidcannonVisibilityLevel } from "voidcannon"; -import bignutty from "../../authors/bignutty.pagex.js"; +import testauthorPagex from "../../authors/testauthor.pagex.js"; import videogamesCollection from "../../collections/videogames.pagex.js"; import testCollection from "../../collections/test.pagex.js"; @@ -52,7 +52,7 @@ export default { }, color: "#4dc294" }, - authors: [bignutty], + authors: [testauthorPagex], collections: [ videogamesCollection.id, testCollection.id, diff --git a/src/content/articles/playground/playground.pagex.js b/src/content/articles/playground/playground.pagex.js index e5b297a..de7349c 100644 --- a/src/content/articles/playground/playground.pagex.js +++ b/src/content/articles/playground/playground.pagex.js @@ -12,6 +12,7 @@ import testCollection from "../../collections/test.pagex.js"; import featuredCollection from "../../collections/_featured.pagex.js"; import {PagexResourceTransformer} from "pagex"; +import testauthorPagex from "../../authors/testauthor.pagex.js"; export default { type: VoidcannonContentType.ARTICLE, @@ -63,7 +64,7 @@ export default { }, color: "#D02843" }, - authors: [bignutty, placeholder, placeholder], + authors: [bignutty, testauthorPagex, placeholder], collections: [ testCollection.id, featuredCollection.id diff --git a/src/content/authors/testauthor.pagex.js b/src/content/authors/testauthor.pagex.js index bf8f9a0..01e1152 100644 --- a/src/content/authors/testauthor.pagex.js +++ b/src/content/authors/testauthor.pagex.js @@ -5,14 +5,11 @@ export default { type: VoidcannonContentType.AUTHOR, id: "test-author", name: "Test Author", - avatar: { - _transform: PagexResourceTransformer.MEDIA, - path: "/content/authors/assets/testing.png" - }, + avatar: "science", theme: { colors: { - light: "#c7f718", - dark: "#c7f718", + light: "#d7a6f4", + dark: "#d7a6f4", } }, links: [ diff --git a/voidcannon b/voidcannon index 4d763d5..e635e8a 160000 --- a/voidcannon +++ b/voidcannon @@ -1 +1 @@ -Subproject commit 4d763d55cceda72671170d6f49c5cd2db38b7cb6 +Subproject commit e635e8a9c1c8a8314649cc316e18966ca5c97fa7