Andre Torrez

Archive page!

This morning over coffee I added an archive page to my little CMS. I’m just starting to hit that “oh crap, it’s all just text files” phase of this project. Since I don’t have a database to query I have to do some array juggling to sort and format my posts. While I’m not ruling out adding a temporary sqlite db to load the files into at publish time, for now I’m able to get away with using the OS’s file name sort ordering (files are something like Y-m-d-title) and Python sorting functions.

I only have like 16 posts so far so it’s still all fun and games. Once I have more posts I’ll break it down by month and year, but that’s going to take a while. :)

⇠ Back to the front page