Quick Start
Create a simple static site in just a few steps.
Step 1: Initialize Project
Section titled “Step 1: Initialize Project”Create a new directory for your project:
mkdir my-sitecd my-siteStep 2: Create Configuration
Section titled “Step 2: Create Configuration”Create a balzac.toml file in your project root:
# Optional configuration - using defaults[global]site_name = "My Site"Step 3: Create Your First Page
Section titled “Step 3: Create Your First Page”Create the pages directory and add an index.hbs file:
mkdir -p pagespages/index.hbs:
<!DOCTYPE html><html> <head> <title>{{site_name}}</title> </head> <body> <h1>Welcome to {{site_name}}</h1> <p>Hello, Balzac!</p> </body></html>Step 4: Build Your Site
Section titled “Step 4: Build Your Site”Run Balzac to generate your site:
balzac buildYour site will be built in the dist/ directory.
Step 5: View Your Site
Section titled “Step 5: View Your Site”Open the generated HTML file in your browser:
open dist/index.htmlOr use a local server:
python3 -m http.server --directory dist 8000Then visit http://localhost:8000
What’s Next?
Section titled “What’s Next?”- Learn about collections to manage blog posts
- Configure your balzac.toml for more control
- Use hooks to customize the build process
- Explore templates for advanced features