From ce1f721b6db9257fa30d6b33622cf7ac9ce83eaa Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Wed, 17 Sep 2025 21:36:22 +0200 Subject: [PATCH] content: update content --- .../playground-p3/playground-p3.pagex.js | 5 +++ src/content/articles/playground/content.md | 45 +++++++++++++++++++ src/content/collections/_featured.pagex.js | 11 ++++- src/content/editorial/home/content.md | 14 +++--- src/content/editorial/home/home.pagex.js | 33 ++++++++------ 5 files changed, 88 insertions(+), 20 deletions(-) diff --git a/src/content/articles/playground-p3/playground-p3.pagex.js b/src/content/articles/playground-p3/playground-p3.pagex.js index 85a8d12..7dbf77b 100644 --- a/src/content/articles/playground-p3/playground-p3.pagex.js +++ b/src/content/articles/playground-p3/playground-p3.pagex.js @@ -17,6 +17,7 @@ export default { }, id: "playground-p3", title: "Playground P3 Test Article", + abstract: "An article about the 2024 video game 'Persona 3 Reload'.", created_at: 1757861297516, theme: { colors: { @@ -46,6 +47,10 @@ export default { inner: { _transform: PagexResourceTransformer.MEDIA, path: "./assets/header/immersive_left/base_p3.png" + }, + base: { + _transform: PagexResourceTransformer.MEDIA, + path: "./assets/header/immersive_left/full_p3.png" } } }, diff --git a/src/content/articles/playground/content.md b/src/content/articles/playground/content.md index 15068e3..71c861d 100644 --- a/src/content/articles/playground/content.md +++ b/src/content/articles/playground/content.md @@ -484,6 +484,51 @@ message PagexMediaAttribution { | Cell 1 | Cell 2 | Cell 3 | Cell 3 | Cell 3 | Cell 3 | Cell 3 | Cell 3 | Cell 3 | Cell 3 | Cell 3 | Cell 3 | Cell 3 | Cell 3 | Cell 3 | | Cell 4 | Cell 5 | Cell 6 | Cell 6 | Cell 6 | Cell 6 | Cell 6 | Cell 6 | Cell 6 | Cell 6 | Cell 6 | Cell 6 | Cell 6 | Cell 6 | Cell 6 | +| Field | Type | Description | +|-------------------------------|----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------| +| id | snowflake | The ID of the message | +| channel_id | snowflake | The ID of the channel the message was sent in | +| lobby_id? | snowflake | The ID of the lobby the message was sent in | +| author ^1^ | partial [user](/resources/user#user-object) object | The author of the message | +| content ^2^ | string | Contents of the message | +| timestamp | ISO8601 timestamp | When this message was sent | +| edited_timestamp | ?ISO8601 timestamp | When this message was last edited | +| tts | boolean | Whether this message will be read out by TTS | +| mention_everyone | boolean | Whether this message mentions everyone | +| mentions | array[partial [user](/resources/user#user-object) object] | Users specifically mentioned in the message | +| mention_roles | array[snowflake] | Roles specifically mentioned in this message | +| mention_channels? ^3^ | array[partial [channel](/resources/channel#channel-object) object] | Channels specifically mentioned in this message | +| attachments ^2^ | array[[attachment](#attachment-object) object] | The attached files | +| embeds ^2^ | array[[embed](#embed-object) object] | Content embedded in the message | +| reactions? | array[[reaction](#reaction-object) object] | Reactions on the message | +| nonce? | integer \| string | The message's nonce, used for message deduplication | +| pinned | boolean | Whether this message is pinned | +| webhook_id? | snowflake | The ID of the webhook that send the message | +| type | integer | The [type of message](#message-type) | +| activity? | [message activity](#message-activity-object) object | The rich presence activity the author is inviting users to | +| application? | [integration application](/resources/integration#integration-application-object) object | The application of the message's rich presence activity | +| application_id? | snowflake | The ID of the application; only sent for interaction responses and messages created through OAuth2 | +| flags | integer | The [message's flags](#message-flags) | +| message_reference? ^4^ | [message reference](#message-reference-object) object | The source of a crosspost, snapshot, channel follow add, pin, or reply message | +| referenced_message? ^5^ ^4^ | ?[message object](#message-object) | The message associated with the `message_reference` | +| message_snapshots? ^4^ | array[[message snapshot](#message-snapshot-object) object] | The partial message snapshot associated with the `message_reference` | +| call? | [message call](#message-call-object) object | The private channel call that prompted this message | +| interaction? **(deprecated)** | [message interaction](/interactions/receiving-and-responding#message-interaction-structure) object | The interaction the message is responding to | +| interaction_metadata? | [message interaction metadata](#message-interaction-metadata-object) object | The interaction the message originated from | +| resolved? | [resolved data](/interactions/receiving-and-responding#resolved-data-structure) object | Data for users, members, channels, and roles referenced in this message | +| thread? | [channel](/resources/channel#channel-object) object | The thread that was started from this message, with the [`member`](/resources/channel#channel-object) key representing thread member data | +| role_subscription_data? | [message role subscription](#message-role-subscription-object) object | The role subscription purchase or renewal that prompted this message | +| purchase_notification? | [message purchase notification](#message-purchase-notification-object) object | The guild purchase that prompted this message | +| gift_info? | [message gift info](#message-gift-info-object) object | Information on the gift that prompted this message | +| components ^2^ | array[[message component](/resources/components#component-object) object] | The message's components (e.g. buttons, select menus) | +| sticker_items? | array[[sticker item](/resources/sticker#sticker-item-object) object] | The message's sticker items | +| stickers? | array[[sticker](/resources/sticker#sticker-object) object] | Extra rich information for the message's sticker items; only available in some contexts | +| poll? ^2^ | [poll](#poll-object) object | A poll! | +| changelog_id? | snowflake | The ID of the changelog that prompted this message | +| soundboard_sounds? | array[[soundboard sound](/resources/soundboard/#soundboard-sound-object) object] | The message's soundboard sounds | +| potions? | array[[potion](#potion-object) object] | Potions applied to the message | +| shared_client_theme? | [shared client theme](#shared-client-theme-object) object | The shared client theme | + ## HTML

This is some HTML text.

diff --git a/src/content/collections/_featured.pagex.js b/src/content/collections/_featured.pagex.js index 1e043dc..ae2d902 100644 --- a/src/content/collections/_featured.pagex.js +++ b/src/content/collections/_featured.pagex.js @@ -1,4 +1,9 @@ -import {VoidcannonCollectionIconType, VoidcannonCollectionType, VoidcannonContentType} from "voidcannon"; +import { + VoidcannonCollectionColor, + VoidcannonCollectionIconType, + VoidcannonCollectionType, + VoidcannonContentType +} from "voidcannon"; export default { type: VoidcannonContentType.COLLECTION, @@ -6,8 +11,10 @@ export default { id: "featured", name: "Featured Content", description: "Featured Content Collection", + color: VoidcannonCollectionColor.AQUA, icon: { type: VoidcannonCollectionIconType.ICON, - icon: "star" + icon: "forklift", + gradient: ["#ff0","#00ffff"], } } \ No newline at end of file diff --git a/src/content/editorial/home/content.md b/src/content/editorial/home/content.md index bdadee3..fa69ee5 100644 --- a/src/content/editorial/home/content.md +++ b/src/content/editorial/home/content.md @@ -1,9 +1,13 @@ + + comic_bubble + The site (and content) are still heavily work-in-progress! + + # Voidcannon -a modern blogging frontend, powered by **pagex**. +Voidcannon is a modern blogging frontend build on pagex, a static site generator. -## Test Articles +This site exists as both a functional example of what pagex can do, and my personal +playground to write about topics that interest me. -- [playground](./playground) -- [p3](./playground-p3) -- [totk](./playground-totk) \ No newline at end of file + \ No newline at end of file diff --git a/src/content/editorial/home/home.pagex.js b/src/content/editorial/home/home.pagex.js index 6ded5a4..10df5a3 100644 --- a/src/content/editorial/home/home.pagex.js +++ b/src/content/editorial/home/home.pagex.js @@ -21,10 +21,10 @@ export default { { type: VoidcannonSectionType.STORY_HERO, content: { - _transform: ContentByIdentifierTransformer.id, + _transform: ContentByIdentifierTransformer, content_ids: [ - playgroundP3.id, playground.id, + playgroundP3.id, playgroundTotk.id ], // TODO: implement this @@ -33,15 +33,15 @@ export default { ] } }, - { - type: VoidcannonSectionType.CAROUSEL, - content: { - _transform: CollectionContentTransformer.id, - collection_id: "featured" - }, - label: "Various Articles", - target: "collections/featured" - }, + // { + // type: VoidcannonSectionType.CAROUSEL, + // content: { + // _transform: CollectionContentTransformer, + // collection_id: "featured" + // }, + // label: "Various Articles", + // target: "collections/featured" + // }, { type: VoidcannonSectionType.EDITORIAL, content: { @@ -52,16 +52,23 @@ export default { { type: VoidcannonSectionType.CONTENT_GRID, content: { - _transform: CollectionContentTransformer.id, + _transform: CollectionContentTransformer, collection_id: "test" }, label: "Testing Articles", icon: "forklift" }, + { + type: VoidcannonSectionType.EDITORIAL, + content: { + _transform: PagexResourceTransformer.MARKDOWN, + content: "" + } + }, { type: VoidcannonSectionType.CONTENT_GRID, content: { - _transform: RecentContentTransformer.id, + _transform: RecentContentTransformer, amount: 15 }, label: "Recent Articles",