Homepage

How is this blog made?

This blog is vanilla html+css+js. It's not a static website though: the list of the new posts is generated dinamically. I still have to think about the way to deal with unsupported javascript.

The list of the posts is in a "JSON" file, which is actually a javascript script that only contains a object, that is the list of the posts.

I usually write out these posts in the markdown format, and transform them into HTML. I'm thinking of ways to automate this process. These are the commands that I use to make the transformation:

markdown post2.md > post2_temp.html  
cat post_template_start.html post2_temp.html post_template_end.html > post2.html  
ex -s -c '%s/<title>InsertTitleHere<\/title>/<title>Title<\/title>/|x' post2.html

It's quicker than copying and pasting myself, but it could be better. A friend of mine suggested that I use Hugo, but it looks a bit above my necessities. I don't feel like learning go for this.

The "JSON" file has to be updated manually, which I don't like. Bye for now,

18/04/2023