About this website

HTML and CSS in the Apennines

A wide-format photograph of the Apuan Alps viewed roughly 10 km from the NNW, showing a snowy mountain ridge on a background of blue sky with tufts of pink sunset clouds. The foreground is full of dark, leafless trees. The Apuan Alps, snowy in January, which were visible from the quiet Apennine ridge where I first started working on this website. January 2023. I thought I had found the perfect place to build my website. A friend let me look after his villa, high up in the chestnut woods of the Tuscan Apennines. My only responsibility was to clear some bamboo—vai tranquillo!

It wasn’t so perfect. Winter is cold in the Italian mountains. I depended on one small, capricious log stove. I huddled close to it and wore all my layers. I learnt that it is impossible to write code whilst wearing gloves. The only things that kept me warm was regular bamboo-eradication sessions. Google wasn’t encouraging: “one of the toughest things to do in the garden”—“long and laborious”—“a nightmare”—but slowly I got the hang of a mattock. My web development skills were growing too. I taught myself HTML, CSS, PHP, SQL and JavaScript.

The goals and the tools

I wanted my website to resemble a nicely-typeset book, with 66 letters per line, proper paragraph indentation, pretty fonts, and pictures in the margins. With this in mind, formatting from Tufte-CSS was the ideal starting point. As I wanted to control these fine details, I wrote the pages from scratch. Working on my laptop, I used the ultimate text editor: Vim. To avoid repeated code, I wrote a Python script to assemble the pages from Jinja templates. Templating also made it easier to make this website fully bilingual (every page is in both English and Spanish).

I don’t recommend my approach to anybody. It’s taken hundreds of hours to build this shaky little site, hours which I could have spent hiking! The website probably has many issues (please contact me if you spot one). Anybody could have learned to build a website much faster using a “content management system” such as WordPress, or blogging tool such as Substack. However, I have felt a few benefits of doing it myself. The tools I’ve used are free of cost, and free in spirit: my codes, pages, and data belong only to me, not any corporation.

A photograph of a wet dirt road in the Apennine Mountains of Tuscany. The road bends off to the left of the image, whilst on the right there is a rustic wire fence, a green field, and the opposite side of the valley covered in trees, with a few traces of autumn colour remaining, and low cloud clinging on. Walking through the winter countryside of Tuscany. The last and most important benefit is that I’ve learnt a lot about how websites work. Although a blog post lacks the romance of an old printed book, it is still a form of expression. In fact, a good travel post is a gesamtkunstwerk, combining the arts of writing, photography, typography, graphic design, and cartography. It can be interactive, and it can reach millions of people. So, learning to build a website is just as worthwhile as learning to paint or carpenter.

The path ahead

I left Italy, and kept working on the website (when I could) until midsummer. I published it the night before leaving to hike the Transcaucasian Trail. Since then, I’ve been trying to populate it with interesting articles about hiking and maps. I try to take beautiful photos, which I process in darktable. My maps are made with free tools from Python, QGIS and Leaflet. I haven’t been back to Tuscany yet, but my friend tells me that the bamboo has all grown back.