Getting Started with Statue
Quick introduction to Statue SSG and key concepts
Statue is a static site generator that transforms markdown files into a fast, modern website. Itβs built on SvelteKit and designed to be simple yet flexible.
Contribute to Statue! Built a cool component, theme, or template? Share it with the communityβit only takes a single command. Learn how β
What is Statue?
Statue turns this:
---
title: My Blog Post
---
# Hello World
This is my first post! Into a fully-styled, static website with navigation, themes, and components.
Key Concepts
π Content is Markdown
All your content lives in the content/ directory as .md files. The folder structure becomes your site structure:
content/blog/my-post.md β yoursite.com/blog/my-post
content/docs/guide.md β yoursite.com/docs/guide No database, no CMS - just files.
π¨ Themes Control Style
Change your entire siteβs look by switching one line in src/lib/index.css:
@import "statue-ssg/themes/blue.css"; π§© Components Build Pages
Use pre-built components to construct your pages:
<Hero />
<Stats />
<Categories {directories} /> βοΈ Config Sets Globals
One file (site.config.js) controls site-wide settings:
export const siteConfig = {
site: { name: "Your Site", url: "https://yoursite.com" },
contact: { email: "hello@yoursite.com" },
social: { twitter: "https://twitter.com/yourhandle" }
}; π Templates Provide Structure
Start with different layouts:
npx statue init --template blog # Blog-focused
npx statue init # Default Project Structure
your-project/
βββ content/ # Markdown content
β βββ blog/
β βββ docs/
βββ src/
β βββ lib/index.css # Theme imports
β βββ routes/
β βββ +page.svelte # Homepage
β βββ [directory]/+page.svelte # Directory pages
β βββ [...slug]/+page.svelte # Content pages
βββ static/ # Images, favicon
βββ site.config.js # Site configuration Quick Actions
Change the theme
Edit src/lib/index.css and change the import line.
Add a blog post
Create content/blog/post-name.md with frontmatter.
Customize the homepage
Edit src/routes/+page.svelte.
Add a custom page
Create src/routes/pagename/+page.svelte.
Update site info
Edit site.config.js.
Next Steps
New to Statue? Follow the checklist:
- New Site Checklist - Step-by-step customization
Want to learn more?
- Site Configuration - All config options
- Themes - Styling your site
- Components - Component reference
- Templates - Using templates
- Routing - How URLs work
Need help?
- Statue.dev - Official documentation site
- GitHub Issues - Report bugs
- Discord - Community chat
Happy building! πΏ