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:
- create a new template or reuse an existing one
- create a new folder that will house my TIL files
- create a
til.njk
file that will be used to list all the TILs in existence :)
That's all folks easy as that.