Skip to content
Honmaple
Documentation navigation

Directory Structure

On this page

A typical Snow site:

mysite/
├── config.yaml          # Site configuration
├── content/
│   ├── _index.md        # Home section
│   ├── about.md         # Page
│   └── posts/
│       ├── _index.md    # Section
│       ├── hello.md     # Page
│       └── tutorials/
│           └── _index.md
├── static/
├── templates/           # Override theme templates
├── themes/
│   └── snow/            # Selected theme
│       ├── theme.yaml
│       ├── templates/
│       ├── static/
│       └── i18n/
├── assets/              # Requires hooks.assets
│   ├── js/
│   ├── css/
│   └── scss/
└── i18n/
    ├── en.yaml
    └── zh.yaml

Directories

Directory Purpose
content/ Content files
static/ Copied to output at relative paths; customize with statics
templates/ Site templates, taking precedence over theme templates
themes/ Themes; theme selects themes/{name}/
assets/ Default resource directory for the assets hook
data/ Default data directory for template data loading
i18n/ Default translation directory
output/ Default build output; change with output_dir

content, static, templates, and themes are fixed names. Extensions choose resource directory names such as assets, data, and i18n.

Use the mount hook to include files or directories from outside the site.

Content Recognition

File or Directory Meaning
*.md, *.org, *.html Page
_index.{md,org,html} Section index
index.{md,org,html} Page bundle index
Names starting with _ or . Ignored by default

See Parsers for supported formats and configuration.

Pages

Ordinary content files define pages. Output paths are controlled by pages.{type}.path.

Sections

A directory containing _index.* defines a section. Sections can be nested.

Page Bundles

A directory containing index.{md,org,html} is a single page with attachments.

Ignored Content

Content names starting with _ or . are ignored, except _index.*. Add custom exclusions:

ignored_content:
  - "drafts/"
  - "private/*"