2017-09-12 07:13:26 +00:00
|
|
|
+++
|
|
|
|
title = "Directory structure"
|
2017-09-27 14:37:17 +00:00
|
|
|
weight = 3
|
2017-09-12 07:13:26 +00:00
|
|
|
+++
|
|
|
|
|
2018-10-18 21:09:32 +00:00
|
|
|
After running `zola init`, you should see the following structure in your folder:
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
.
|
|
|
|
├── 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`
|
2018-10-18 21:09:32 +00:00
|
|
|
A mandatory configuration file of Zola in TOML format.
|
2019-05-27 12:35:14 +00:00
|
|
|
It is explained in details in the [Configuration page](@/documentation/getting-started/configuration.md).
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
## `content`
|
2018-04-02 00:33:59 +00:00
|
|
|
Where all your markup content lies: this will be mostly comprised of `.md` files.
|
2019-05-27 12:35:14 +00:00
|
|
|
Each folder in the `content` directory represents a [section](@/documentation/content/section.md)
|
|
|
|
that contains [pages](@/documentation/content/page.md) : your `.md` files.
|
2017-09-27 14:37:17 +00:00
|
|
|
|
2019-05-27 12:35:14 +00:00
|
|
|
To learn more, read [the content overview](@/documentation/content/overview.md).
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
## `sass`
|
|
|
|
Contains the [Sass](http://sass-lang.com) files to be compiled. Non-Sass files will be ignored.
|
2018-03-18 08:34:37 +00:00
|
|
|
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`.
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
## `static`
|
|
|
|
Contains any kind of files. All the files/folders in the `static` folder will be copied as-is in the output directory.
|
2019-07-10 21:37:19 +00:00
|
|
|
If your static files are large you can configure Zola to [hard link](https://en.wikipedia.org/wiki/Hard_link) them
|
|
|
|
instead of copying by setting `hard_link_static = true` in the config file.
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
## `templates`
|
2018-04-02 00:33:59 +00:00
|
|
|
Contains all the [Tera](https://tera.netlify.com) templates that will be used to render this site.
|
2019-05-27 12:35:14 +00:00
|
|
|
Have a look at the [Templates](@/documentation/templates/_index.md) to learn more about default templates
|
2018-04-02 00:33:59 +00:00
|
|
|
and available variables.
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
## `themes`
|
2018-04-02 00:33:59 +00:00
|
|
|
Contains themes that can be used for that site. If you are not planning to use themes, leave this folder empty.
|
2019-05-27 12:35:14 +00:00
|
|
|
If you want to learn about themes, head to the [themes documentation](@/documentation/themes/_index.md).
|