quartz.config.ts- Site settings, theme, and pluginsquartz.layout.ts- Page layout and component placement
QuartzConfig Structure
The main configuration file exports aQuartzConfig object with two main sections:
Configuration Sections
Site Settings
Configure page title, locale, base URL, and site behavior
Theme
Customize colors, typography, and fonts for light and dark modes
Layout
Organize components and define page structure
Plugins
Add transformers, filters, and emitters to extend functionality
Quick Example
Here’s a minimal Quartz configuration:quartz.config.ts
Configuration Reference
configuration
Theconfiguration object contains all site-wide settings:
The title displayed in the browser tab and site header
Suffix appended to page titles (e.g., ” - My Site”)
Enable Single Page Application mode for faster navigation
Show content previews when hovering over links
Language and region code (e.g., “de-DE”, “fr-FR”)
Your site’s domain without protocol (e.g., “example.com”)
Folders or files to exclude from the build
Which date to display by default
Theme configuration including colors, typography, and fonts
plugins
Theplugins object defines the content processing pipeline:
- transformers - Process content during the build (Markdown, syntax highlighting, etc.)
- filters - Determine which pages to include/exclude
- emitters - Generate output files (HTML pages, RSS, sitemap, etc.)
Next Steps
Configure Site Settings
Set up your site title, locale, and base URL in Site Settings
Customize Theme
Define your color scheme and typography in Theme Configuration
Design Layout
Arrange components and structure your pages in Layout Configuration