Skip to main content
  1. Today I Learned (TIL)/

Integrating Jekyll Compose with my TIL collection

·84 words·1 min·

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.

Chandler Thompson
Author
Chandler Thompson
I lead engineering teams and coach the people who run them. This is where I write down what actually worked.

Related