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

Adding a Today I Learned (TIL) section to my website

·67 words·1 min·

TIL: a Jekyll collection is all it takes to carve out a dedicated TIL section with its own permalink scheme.

In _config.yml, I added a new collection specifically for TIL posts:

collections:
  til:
    output: true
    permalink: /til/:title/

That’s the whole trick. Drop those four lines in, restart the server, and /til/ becomes its own indexable section with clean URLs instead of getting lumped in with regular posts.

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