The public/
folder is used to host assets that the website can access.
Note: All files and folders in the public directory are viewable to the public.
Assets can be loaded in the website code via the /public
folder.
<img src="/public/img/my-image.png" alt="My public image">
Common files are CSS and JS, but any kind of files can be added.
If you make a new folder, it will be added to the path.
For example, /public/my-folder/my-file.csv
would have the url localhost/public/my-folder/my-file.csv
Edit .scss files in the /styles
folder, and they will be generated as .css files in the public/css
folder.
The content
folder serves as a router for the application.
Any file or folder placed in this folder will create a page on the website at the URL.
The _data folder includes files data files.
- JSON
- YAML
- https://www.11ty.dev/docs/data/
- https://www.11ty.dev/docs/data-global/
- https://www.11ty.dev/docs/data-template-dir/
The _includes folder contains templates and layouts.
- Liquid
- HTML (defaults to Liquid)