diff --git a/Aetheria/index.md b/Aetheria/index.md index c91bcf2..eac4355 100644 --- a/Aetheria/index.md +++ b/Aetheria/index.md @@ -1,6 +1,7 @@ --- title: Aetheria description: "Galaxy-scale social experiment disguised as science-fantasy: cockpit action, corporate logistics, alien civilizations, and humanity repeatedly speedrunning extinction." +socialDeck: "Cockpit action, spreadsheet predation, and humanity repeatedly speedrunning extinction." enableToc: false --- diff --git a/site/quartz/static/social/aetheria-space.png b/site/quartz/static/social/aetheria-space.png new file mode 100644 index 0000000..62b8ed3 Binary files /dev/null and b/site/quartz/static/social/aetheria-space.png differ diff --git a/site/quartz/static/social/game-design-longinus.png b/site/quartz/static/social/game-design-longinus.png new file mode 100644 index 0000000..ef9faec Binary files /dev/null and b/site/quartz/static/social/game-design-longinus.png differ diff --git a/site/quartz/static/social/lore-elysium.png b/site/quartz/static/social/lore-elysium.png new file mode 100644 index 0000000..e1991df Binary files /dev/null and b/site/quartz/static/social/lore-elysium.png differ diff --git a/site/quartz/static/social/stories-catastrophe.jpg b/site/quartz/static/social/stories-catastrophe.jpg new file mode 100644 index 0000000..aaea875 Binary files /dev/null and b/site/quartz/static/social/stories-catastrophe.jpg differ diff --git a/site/quartz/static/social/worldbuilding-galaxy-map.jpg b/site/quartz/static/social/worldbuilding-galaxy-map.jpg new file mode 100644 index 0000000..dfea461 Binary files /dev/null and b/site/quartz/static/social/worldbuilding-galaxy-map.jpg differ diff --git a/site/quartz/util/siteOg.ts b/site/quartz/util/siteOg.ts new file mode 100644 index 0000000..a6b42ba --- /dev/null +++ b/site/quartz/util/siteOg.ts @@ -0,0 +1,99 @@ +import { QuartzPluginData } from "../plugins/vfile" + +export type SocialImageRef = + | { + kind: "static" + path: string + alt?: string + } + | { + kind: "relative" + path: string + alt?: string + } + | { + kind: "absolute" + path: string + alt?: string + } + +export type SiteSocialMetadata = { + section?: string + deck?: string + image?: SocialImageRef +} + +type SectionKey = "aetheria" | "lore" | "gameDesign" | "stories" | "worldbuilding" + +const sectionMetadata: Record = { + aetheria: { + section: "Aetheria", + deck: "Galaxy-scale social experiment disguised as science-fantasy.", + image: { + kind: "static", + path: "social/aetheria-space.png", + alt: "A stylized Aetheria space scene.", + }, + }, + lore: { + section: "Lore", + deck: "A sealed domain, a transplanted civilization, and all the administrative damage it dragged in with it.", + image: { + kind: "static", + path: "social/lore-elysium.png", + alt: "Aetheria concept art showing Elysium.", + }, + }, + gameDesign: { + section: "Game Design", + deck: "Cockpit action, spreadsheet predation, and one doomed universe generous enough to host both.", + image: { + kind: "static", + path: "social/game-design-longinus.png", + alt: "Aetheria concept art showing ship customization imagery.", + }, + }, + stories: { + section: "Stories", + deck: "Fiction from a universe where ordinary longing has to survive industrial-scale bad decisions.", + image: { + kind: "static", + path: "social/stories-catastrophe.jpg", + alt: "Aetheria concept art showing catastrophe imagery.", + }, + }, + worldbuilding: { + section: "Worldbuilding", + deck: "Infrastructure, ideology, war, and the long administrative road to catastrophe.", + image: { + kind: "static", + path: "social/worldbuilding-galaxy-map.jpg", + alt: "Aetheria concept art showing a galaxy map.", + }, + }, +} + +function sectionForSlug(slug: string): SectionKey { + if (slug.startsWith("Lore/")) { + return "lore" + } + + if (slug.startsWith("Game-Design/")) { + return "gameDesign" + } + + if (slug.startsWith("Stories/")) { + return "stories" + } + + if (slug.startsWith("Worldbuilding/")) { + return "worldbuilding" + } + + return "aetheria" +} + +export function resolveSiteSocialMetadata(fileData: QuartzPluginData): SiteSocialMetadata { + const slug = typeof fileData.slug === "string" ? fileData.slug : "index" + return sectionMetadata[sectionForSlug(slug)] +}