TIL: Jekyll Compose can stamp per-collection default frontmatter, so new TILs pick up the right layout automatically.
Since I have a custom layout for the TIL collection, I added default frontmatter for Jekyll Compose for the collection:
jekyll_compose:
default_front_matter:
til:
layout: "til"This allows me to use the following command to create a TIL with the default frontmatter.
bundle exec jekyll compose "Some TIL title here" --collection "til"No more copy-pasting the layout line into every new file. The default frontmatter rides along automatically.
