About
Learn about the author and the purpose of this space.
Leonardo Campos

I'm a lawyer by training, but I've been working in technology for over 20 years, and I still enjoy learning new things. Another passion of mine is politics, although I'm not particularly fond of the kind of casual, "barroom" discussions people tend to have about it. They often seem superficial, overly emotional, and full of certainty. This is a place where I can think things through and put my ideas in order.
Why this site exists
Whenever I study something, especially something related to technology, I like to write about it. The idea is both to share what I've learned and to check whether I've actually understood the subject.
Until now, I've been using Medium, which is a perfectly reasonable platform, but it didn't let me do everything I wanted — especially run JavaScript or pretty much anything else I felt like experimenting with.
This site is my answer to that.
How this site was built
Since this site is simply a place to put my thoughts, an alternative to Medium, I didn't want to spend too much money on it. So I decided to build a static website — or, more precisely, a static site generator using Python.
I'd already been writing a lot in Obsidian, which uses Markdown, so I wanted to make use of the formats I was already working with. In other words, the system had to understand those files and use them to generate the content.
The basic ingredients are Python + Markdown + Jinja2 + CSS + JavaScript. And, of course, a little HTML.
Use of AI
Building the site
I wanted to use pi.dev, so I started by researching how to go about it. I ended up setting up a directory structure that allows