How this site is made

This site went online on Monday, 2 November 2026. It is small: about 3 MB in all, and Hugo builds it in less than a tenth of a second.
Think of it as a small print shop. The Markdown file is the manuscript. Hugo is the press. The server is the shelf where you pick up your copy. This post is a tour of the shop: what is in it, what I left out, and why.
Plain files in, plain files out
Hugo is a static site generator. It reads text files and writes finished web pages, once, on my Mac. No program runs on the server when you visit a page. The server only hands out files.
I use Hugo with no theme. A theme is like a furnished flat: you move in fast, but you live with someone else’s choices, and you do not know what is behind each cupboard door. My site has twenty small layout files, and I know what each one does. For example, one of them adds a small ↗ after each link to another site, so you know before the click that you leave this site.
Each post is a folder. It holds the text in Markdown, the cover photo and, if the post has one, a diagram. The text starts with a few lines of data: the title, the date, a short description and the tags. A post with the tag “design system”, like this one, also shows in the Design log, the list of posts about the design system, on the design system page.
What I left out
The site has no JavaScript. It has no analytics, no trackers, no cookies, no CDN, no Google Fonts and no embedded videos or posts. Your browser asks this one site for each file, and nothing else.
The fonts, Space Grotesk and JetBrains Mono, are stored on the site itself. So no font service learns that you were here. The privacy statement promises all of this, so each change must keep it true.
Leaving things out has a cost. There is no search, no comments and no count of visitors. There is also no switch for dark mode, because a switch needs JavaScript. Instead, the site follows the setting of your device. If your computer or your phone is in dark mode, the site is too. CSS does this alone, with one media query: prefers-color-scheme.
One more guard: a file in the repository, AGENTS.md, holds the rules for the AI agents that help me with the site. Among them: how to write, which colours to use, and that the site never loads a file from another server.
The look comes from the design system
The colours, fonts and parts such as buttons come from my small design system, the Bojicas Design System. I wrote about it in my first post.
The design system has a short script, build.py. It writes two files into this site: the stylesheet bojicas.css, and a data file, bojicas.json, with values such as the version and the colours. The design system page reads it. I never edit these two files by hand. When the design system changes, I run the script again.
Next to it, main.css holds only what is special to this site, such as the layout of the home page and the post lists. When Hugo builds the site, it joins the two stylesheets into one, makes it smaller, and gives it a new name each time its content changes. The server tells browsers to keep the stylesheet for a year. After a change, the page asks for the file with the new name, so you never see old styles.
Diagrams that change colour
A diagram is an SVG file beside the post. SVG is a format for drawings as text: lines, boxes and words.
A shortcode, a small Hugo template that I call from the Markdown text, puts the SVG into the page itself, not as a separate image. The drawing gives no colours of its own. It only names a role for each part, such as “box”, “line” or “text”. The stylesheet gives each role its colour, for light and for dark mode. So the diagram above changes with the page when you switch your device to dark mode.
Covers, credits and feeds
The cover photos come from Unsplash. The source photo is at most 2400 pixels wide, and the source file itself is never published. Hugo cuts each cover to the shape 1.91 : 1, which is also the shape of a card when you share a link. So the cover on the page and the card in a chat or a social network show the same picture.
The photographer and the licence of each cover are part of the post’s data. From this data, Hugo builds the credit line under each cover and the page Image credits.
The feeds carry the full text of each post, not only a teaser, so you can read it in your feed reader without a visit to the site. There is one feed for all posts, and one for each tag.
From my Mac to the server
One script, deploy.sh, puts the site online. It does three things:
- It builds the site with
hugo --minify. - It makes sure that the web server can read each file.
- It sends the files with rsync over SSH to the web server at DreamHost. Rsync sends only the files that changed.
Before each deploy, I run ./deploy.sh --dry-run. It shows what would change on the server. This matters, because rsync also deletes each file on the server that the build does not have. More than once, the dry run showed that it would delete favicon files. DreamHost, my hosting company, puts them on the server, and puts them back after a delete. Each time, I let rsync delete them.
A small settings file for the web server, .htaccess, sends each visit to HTTPS. It also shows the site’s own page for a wrong address, and tells browsers how long they may keep fonts, images and the stylesheet.
One pitfall
Hugo does not publish a post with a date in the future. It also gives no warning. The post is simply not in the build.
I met this with my second post. I wanted it online on the evening before its date. A normal build left it out. For that deploy, I had to set HUGO_BUILDFUTURE=true, which tells Hugo to build future posts too. Now I keep one rule: on the day of the deploy, the date of each post must not be in the future.
Where it stands
All of this is online today. To follow the Design log, subscribe to the Design log feed.