Every root sub-folder in the source folder (default
src/) which name doesn't start with an underscore (
_) automaticaly becomes a collection.
permalink property set directly in a content's Front Matter will not be overriden by the global one here after.
For all pages at once, you can decide with the
permalinkFolders property in the configuration file how you want permalinks to behave:
- to preserve Eleventy's default behavior where every Markdown file becomes a folder and an
index.htmlfile, set it to
- to generate less folders, set it to
As you can see, you can't have both
/about/index.md with Eleventy default behavior (
true), as they would try to create the same HTML file.
layout property set directly in a content's Front Matter will not be overriden by the global ones here after.
If the content comes from a collection and a layout with the name of the collection exists, it is used. Else, the
pages layout is used.
Examples with existing
Atom feeds §︎