gamecult-site/site/quartz.config.ts
Meta Vens bf7f70e68a Sidebars gone: no layout places a sidebar; the overview component, TOC transformer, sidebar frontmatter and sidebar CSS go
One unconditional grid rule replaces the :empty/:has grid and the per-slug
overrides; the engine's empty side divs are hidden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 19:34:57 +02:00

111 lines
2.9 KiB
TypeScript

import { QuartzConfig } from "./quartz/cfg";
import * as Plugin from "./quartz/plugins";
import * as Component from "./quartz/components";
import GameCultContent from "./quartz/components/GameCultContent";
/**
* Quartz 4 Configuration
*
* See https://quartz.jzhao.xyz/configuration for more information.
*/
const config: QuartzConfig = {
configuration: {
pageTitle: "GameCult",
pageTitleSuffix: "",
enableSPA: false,
enablePopovers: true,
analytics: null,
locale: "en-GB",
baseUrl: "gamecult.org",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "modified",
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
typography: {
header: {
name: "Montserrat",
weights: [100, 200, 300, 400, 600],
},
title: {
name: "Montserrat",
weights: [100, 200, 300],
},
body: {
name: "Ubuntu",
weights: [300, 400, 500, 700],
includeItalic: true,
},
code: "IBM Plex Mono",
},
colors: {
lightMode: {
light: "#07111a",
lightgray: "#16212c",
gray: "#63758a",
darkgray: "#b7c7d9",
dark: "#eef5ff",
secondary: "#ff8a2a",
tertiary: "#59b7ff",
highlight: "rgba(89, 183, 255, 0.14)",
textHighlight: "#ff8a2a55",
},
darkMode: {
light: "#07111a",
lightgray: "#16212c",
gray: "#63758a",
darkgray: "#b7c7d9",
dark: "#eef5ff",
secondary: "#ff8a2a",
tertiary: "#59b7ff",
highlight: "rgba(89, 183, 255, 0.14)",
textHighlight: "#ff8a2a55",
},
},
},
},
plugins: {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "git", "filesystem"],
}),
Plugin.SyntaxHighlighting({
theme: {
light: "github-light",
dark: "github-dark",
},
keepBackground: false,
}),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
Plugin.Description(),
Plugin.Latex({ renderEngine: "katex" }),
],
filters: [Plugin.RemoveDrafts()],
emitters: [
Plugin.AliasRedirects(),
Plugin.ComponentResources(),
Plugin.ContentPage({
pageBody: GameCultContent({ fallback: "content" }),
}),
Plugin.FolderPage({
pageBody: GameCultContent({ fallback: "folder" }),
}),
Plugin.ContentIndex({
enableSiteMap: true,
enableRSS: true,
}),
Plugin.Assets(),
Plugin.Static(),
Plugin.Favicon(),
Plugin.InkEmbedder(),
Plugin.NotFoundPage(),
// Comment out CustomOgImages to speed up build time
Plugin.CustomOgImages(),
],
},
};
export default config;