zola/docs/content/documentation/getting-started/directory-structure.md
2018-10-18 23:11:36 +02:00

1.7 KiB

+++ title = "Directory structure" weight = 3 +++

After running zola init, you should see the following structure in your folder:

.
├── config.toml
├── content
├── sass
├── static
├── templates
└── themes

5 directories, 1 file

Here's a high level overview of each of these folders and config.toml.

config.toml

A mandatory configuration file of Zola in TOML format. It is explained in details in the Configuration page.

content

Where all your markup content lies: this will be mostly comprised of .md files. Each folder in the content directory represents a section that contains pages : your .md files.

To learn more, read the content overview.

sass

Contains the Sass files to be compiled. Non-Sass files will be ignored. The directory structure of the sass folder will be preserved when copying over the compiled files: a file at sass/something/site.scss will be compiled to public/something/site.css.

static

Contains any kind of files. All the files/folders in the static folder will be copied as-is in the output directory.

templates

Contains all the Tera templates that will be used to render this site. Have a look at the Templates to learn more about default templates and available variables.

themes

Contains themes that can be used for that site. If you are not planning to use themes, leave this folder empty. If you want to learn about themes, head to the themes documentation.