Collections

Every sub-folder in the collections/ folder automaticaly becomes a collection.

Any 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 one of the collections and a layout exists with the same name as the collection, it is used. The pages layout is used as a fallback.

Examples if there are news and notes layouts:

sourcelayout
pages/index.mdpages
pages/about.mdpages
pages/about/index.mdpages
pages/about/other.mdpages
collections/news/index.mdnews
collections/news/first-article.mdnews
collections/news/2020/04/first-article/index.mdnews
collections/notes/2020/0001/first-note.mdnotes

Any permalink property set directly in a content's Front Matter will not be overriden by the default one here after:

sourcepermalink
index.mdindex.html
about.mdabout/index.html ⚠︎
about/index.mdabout/index.html ⚠︎
about/other.mdabout/other/index.html
articles/2020/04/first-article/index.mdarticles/2020/04/first-article/index.html

As you can see, you can't have both /about.md and /about/index.md in sources with Eleventy default behavior, as they would try to create the same HTML file.

WIP

WIP