As a finished product this code uses md4c to parse markdown and combines it with a template and on the side generates a navbar of all the existing pages according to their filesystem and puts that in each template too.
Pages can take some small settings and properties on their first line in the form of single chars (e.g. P to set to private while a page is still being worked on).
I'm really proud of this, its not clean but I feel like its a project I set myself a spec for and stuck really well to.
Find the site at [www.rosia.me](https://rosia.me) and a blog post about its creation [here](https://www.rosia.me/ThisSite.html)