voidcannon: support icons for author avatars

content: migrate test articles to test author
This commit is contained in:
bignutty
2025-11-15 01:38:00 +01:00
parent 73a5ac6b17
commit 49d2278386
7 changed files with 14 additions and 16 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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,

View File

@@ -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,

View File

@@ -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

View File

@@ -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: [