Complete guide to DAX folder structure - _data, content, templates, public, site
Structure
│ Dax.csproj, Program.cs
├───_data/ → metadata.json, config.yaml, nav.json
├───content/ → index.md → /, about.md → /about/, posts.md + posts/hello.md → /posts/hello/
├───templates/layouts/ → base.dax, home.dax, posts-list.dax, post.dax, tag.dax
├───templates/partials/ → header.dax, footer.dax, seo.dax
├───public/ → css/, img/ → copied to site/
└───site/ → output (gitignored)
Why this?
_data/= global data, accessible,DAX .NET Static Site Generatorcontent/= markdown files, URL = file pathtemplates/= layouts + partials,{% include header.dax %}public/= static assets copied verbatimsite/= build output, never edit
.gitignore must include bin/, obj/, site/.
About
DAX .NET Static Site Generator
DAX is a slim .NET SSG. Build static sites 50x faster than Blazor SSG. No WASM bloat, just pure static HTML. For .NET devs who hate Blazor slow.
Lastest Post
Hello DAX - Pure C# Slim Static Site Generator That Slaps Blazor Bloat
DAX vs CAX - Why C# Beats C for Windows Developers