Published on 10/8/2023
Last update on 10/8/2023
- Use a lowercase
index.njk
file as start page, don’t useIndex.njk
. - Layouts go in the
_includes
folder; Eleventy looks for them from inside there. - By default, Eleventy sorts collections by their creation date.
- Make use of the “data cascade” (for example, for posts, put all the common front matter’s data in their common layout’s front matter).
- I use custom fields for “created” and “updated” in front matter because I don’t want to be tied to other things, such as with
git Last Modified
andgit Created
that impliesn the use of Git. - To clone a project from GitHub:
git clone
, thennpm install
.