Shad's Musings

Adding non-blog content to eleventy site

One of the challenges that I faced when this blog was managed by hugo was
how to add different content that were not blog posts. I know it was possible
but I found it hard to parse the hugo documentation for what I wanted. I was also
fighting against my initial theme choice and the whole git submodule mess.

Out goes hugo, and in comes eleventy. Everything is a breeze so far.

To add a new section, in this case a TIL (today I learned) page, I needed to do the following:

  1. create a new template or reuse an existing one
  2. create a new folder that will house my TIL files
  3. create a til.njk file that will be used to list all the TILs in existence :)

That's all folks easy as that.