2017-09-12 07:13:26 +00:00
|
|
|
+++
|
|
|
|
title = "Directory structure"
|
2020-01-20 03:02:05 +00:00
|
|
|
weight = 30
|
2017-09-12 07:13:26 +00:00
|
|
|
+++
|
|
|
|
|
2019-11-26 19:30:30 +00:00
|
|
|
After running `zola init`, you should see the following structure in your directory:
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
.
|
|
|
|
├── config.toml
|
|
|
|
├── content
|
|
|
|
├── sass
|
|
|
|
├── static
|
|
|
|
├── templates
|
|
|
|
└── themes
|
|
|
|
|
|
|
|
5 directories, 1 file
|
|
|
|
```
|
|
|
|
|
2019-11-26 19:30:30 +00:00
|
|
|
Here's a high-level overview of each of these directories and `config.toml`.
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
## `config.toml`
|
2019-11-26 19:30:30 +00:00
|
|
|
A mandatory Zola configuration file in TOML format.
|
|
|
|
This file is explained in detail in the [configuration documentation](@/documentation/getting-started/configuration.md).
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
## `content`
|
2019-11-26 19:30:30 +00:00
|
|
|
Contains all your markup content (mostly `.md` files).
|
|
|
|
Each child directory of 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-11-26 19:30:30 +00:00
|
|
|
To learn more, read the [content overview page](@/documentation/content/overview.md).
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
## `sass`
|
2021-02-03 12:13:49 +00:00
|
|
|
Contains the [Sass](https://sass-lang.com) files to be compiled. Non-Sass files will be ignored.
|
2019-11-26 19:30:30 +00:00
|
|
|
The directory structure of the `sass` folder will be preserved when copying over the compiled files; for example, a file at
|
2018-03-18 08:34:37 +00:00
|
|
|
`sass/something/site.scss` will be compiled to `public/something/site.css`.
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
## `static`
|
2019-11-26 19:30:30 +00:00
|
|
|
Contains any kind of file. All the files/directories in the `static` directory will be copied as-is to the output directory.
|
|
|
|
If your static files are large, you can configure Zola to [hard link](https://en.wikipedia.org/wiki/Hard_link) them
|
|
|
|
instead of copying them by setting `hard_link_static = true` in the config file.
|
2017-09-27 14:37:17 +00:00
|
|
|
|
|
|
|
## `templates`
|
2019-11-26 19:30:30 +00:00
|
|
|
Contains all the [Tera](https://tera.netlify.com) templates that will be used to render your site.
|
|
|
|
Have a look at the [templates documentation](@/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`
|
2019-11-26 19:30:30 +00:00
|
|
|
Contains themes that can be used for your site. If you are not planning to use themes, leave this directory empty.
|
|
|
|
If you want to learn about themes, see the [themes documentation](@/documentation/themes/_index.md).
|