gamecult-site/site/quartz.layout.ts
Meta Vens 9bd39bbf18 Footer links: Docs and the Dossier join the site footer; brand doc Layout stops claiming tour/Pitch keep a frame
Operator ruling: "Docs and dossier can go to the footer, the rest stay unlinked".
/tour, /Pitch, /Graph and /democratizing-gamedev stay URL-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 22:23:43 +02:00

83 lines
3 KiB
TypeScript

import { PageLayout, SharedLayout } from "./quartz/cfg"
import * as Component from "./quartz/components"
import GameCultMasthead from "./quartz/components/GameCultMasthead"
import GameCultArticleMeta from "./quartz/components/GameCultArticleMeta"
import GameCultThemeLock from "./quartz/components/GameCultThemeLock"
const isGraphPage = (page: any) => page.fileData.slug === "Graph"
const isThingPage = (page: any) => page.fileData.slug === "Thing"
const isStandardContentPage = (page: any) =>
page.fileData.slug !== "index" && !isGraphPage(page) && !isThingPage(page)
const isBlogArticle = (page: any) =>
page.fileData.slug?.startsWith("Blog/") && page.fileData.slug !== "Blog/index"
// components shared across all pages
export const sharedPageComponents: SharedLayout = {
head: Component.Head(),
header: [GameCultThemeLock(), GameCultMasthead()],
afterBody: [],
footer: Component.Footer({
links: {
GitHub: "https://github.com/GameCult",
Aetheria: "https://aetheria.gamecult.org",
Zyphos: "https://zyphos.gamecult.org",
Docs: "/Docs",
Dossier: "/dossier",
},
}),
}
// components for pages that display a single page (e.g. a single note)
export const defaultContentPageLayout: PageLayout = {
beforeBody: [
Component.ConditionalRender({
component: Component.GameCultGraphSpaShell({
config: {
title: "GameCult Site Graph",
layoutMode: "layered",
architectureDescription:
"Public GameCult pages as nodes. Internal links are edges; incoming backlinks are counted into each page.",
},
}),
condition: isGraphPage,
}),
Component.ConditionalRender({
component: Component.Breadcrumbs({ rootName: "GameCult", showCurrentPage: false, showRoot: false }),
condition: isStandardContentPage,
}),
Component.ConditionalRender({
component: Component.ArticleTitle(),
condition: isStandardContentPage,
}),
Component.ConditionalRender({
component: GameCultArticleMeta(),
condition: isBlogArticle,
}),
Component.ConditionalRender({
component: Component.ContentMeta(),
condition: (page) => isStandardContentPage(page) && !isBlogArticle(page) && page.fileData.slug !== "Projects/index",
}),
],
left: [],
right: [],
}
// components for pages that display lists of pages (e.g. tags or folders)
export const defaultListPageLayout: PageLayout = {
beforeBody: [
Component.ConditionalRender({
component: Component.Breadcrumbs({ rootName: "GameCult", showCurrentPage: false, showRoot: false }),
condition: (page) => page.fileData.slug !== "index",
}),
Component.ConditionalRender({
component: Component.ArticleTitle(),
condition: (page) => page.fileData.slug !== "index",
}),
Component.ConditionalRender({
component: Component.ContentMeta(),
condition: (page) => page.fileData.slug !== "index" && page.fileData.slug !== "Projects/index",
}),
],
left: [],
right: [],
}