Mário Nogueira

Back to blogging, the long way round

I started blogging around 2005, on Blogger. I had always remembered it as earlier, but the Wayback Machine set me straight: its oldest capture of my old blog is from 2006, and the archive in that page goes back to 2005. Looking back, it's funny how much of the web I take for granted now was being invented in those little sidebars and comment boxes.

The early days

The blog was called Blog do Mário, and it was written in Portuguese.

Blog do Mário, as captured by the Wayback Machine in 2006

Most of what I wrote back then was about what we would now call memes. Nobody called them that at the time: they were just the funny, strange or clever things that travelled from site to site, and I loved chasing them, collecting them and passing them on. Mixed in were bits of tech news (screenshots of the upcoming Windows Vista, for instance) and, more and more, photographs dug out of my archives. I was quite prolific, posting far more often than I ever have since.

The community was not that big, but it felt more connected than anything I've seen since. We read each other, commented on each other, and linked to each other in our sidebars. Mine had a list of "Blogs habituais" (the blogs I read regularly), a "Colaborações" section for the blogs I also wrote for, and a Cbox shoutbox called "Desabafos" where visitors could leave a quick message. Those lists of links formed a kind of blog ring: you could start on one blog and wander through a whole neighbourhood of people, all of them aware of each other. There was no algorithm deciding who saw what. If you were found, it was because someone you knew had pointed at you.

On and off

After that first period, my blogging became an on-and-off affair. I tried new platforms as they came along: WordPress, Tumblr, and a very short (pun intended) experiment with Twitter. None of them stuck for long.

Part of the reason is that photography slowly took the place of writing. Photography communities like deviantART and, later, Instagram gave me some of what the early blogs had: a place to share, and people to share with. For a while, pictures said what I would otherwise have written.

Static sites

Still, I wanted an online presence that was mine, not a profile on someone else's platform. That led me to static websites. I started with generators like Jekyll, but over time I drifted towards something simpler: shell scripts I wrote myself, publishing to GitHub Pages.

These sites were less about blogging and more about showcasing my photography. The first one, simply called mário nogueira, was organised around monthly collections, "Instantâneos" (snapshots) of each month. The front page showed only the three latest collections, each with a single cover photo, plus a short menu (archive, projects, about) and a link to get new posts by email.

The front page of my first static site, with the collections from November 2019 to January 2020

After that I tried a few other formats: regular posts, and also plain portfolio collections, letting the photos stand on their own. I think there were three or four versions of these sites in total, each one a slightly different idea of what "my place on the web" should be.

Coming back

More recently I wanted two things: to move away from GitHub, and to get back to actually writing. Not just photos this time, but posts about my hobbies, about technology, and about whatever else I find interesting.

So I built (with Claude's help) yet another small shell-script generator, the one producing the page you're reading now, and moved hosting to the free web hosting that OVHcloud includes with my domain registration. It feels like a return to the beginning: a simple page, my own words, and hopefully a few links to other people's blogs over time.

The front page of this site in November 2026, in dark mode

How this site works

The whole thing is a single POSIX shell script, build.sh, plus cmark to turn Markdown into HTML (lowdown works as well). No frameworks, no package manager, no JavaScript.

Content lives in a folder per post:

posts/YYYY-MM-DD-slug/index.md   first line is "# Title"
posts/YYYY-MM-DD-slug/tags       optional, whitespace-separated tags
posts/YYYY-MM-DD-slug/*.jpg      images and other assets, alongside
posts/_draft-name/               anything starting with _ is a draft, skipped
static/                          copied as-is (stylesheet, favicon)

The date and slug come from the folder name, and the title from the first line of the post. Running ./build.sh wipes and regenerates public/:

Everything is configured through environment variables with sensible defaults (site name, base URL, language, number of feed entries, whether tag pages are generated), so the script itself rarely needs editing.

The styling is one small stylesheet: system fonts, a comfortable reading width of about 68 characters, and automatic light and dark mode through color-scheme, so the page follows the reader's system settings without a single line of extra code.

Publishing is one line:

rclone sync public/ ovh-www:www/

rclone mirrors the generated folder to the OVHcloud hosting, uploading what changed and deleting what's gone. Write, build, sync, done.

It's not much, and that's the point. The whole site fits in my head, and if something breaks I know exactly where to look. That might be what keeps me writing this time.