A new look for the site and the four-space Hugo bug
A new look for the site and the four-space Hugo bug
On Wednesday, 18 November, I replaced the site’s layout.
The previous design did its job of getting posts online, but it still looked like a default documentation template, with a search bar and a light/dark mode toggle. I wanted a cleaner reading experience closer to an editorial notebook, while keeping a nod to terminals and code.
The new layout splits the home page into two parts:
- Terminal-style intro (
#top): a dark stage (#0c0b09) with a typing animation on a monitor, a four-step progress bar, and a direct skip link (SKIP THE INTRO ↓) for anyone who wants to jump straight to the text. - Light editorial body (
#content): a paper-toned background, a fixed top bar with thePT | ENlanguage switcher, and seven numbered sections along the side (01to07), from Who I am to Where to follow me.
To avoid external font servers and layout shifts while loading, all three typefaces now live in the repository as local .woff2 files: STIX Two Text for headings and editorial emphasis, IBM Plex Mono for section numbers and terminal chrome, and Archivo for body copy.
The bug that only showed up on the second card#
When the first commit went live at 8:02 p.m. that Wednesday, I asked the blog editor agent to open the published site in the browser and check both the home page and the subpages in Portuguese and English.
The intro, navigation, local fonts, and subpages (/blog/, /x/, /arquivo/, /sobre/, and /contato/) all returned 200 OK right away. The problem was in section 06 — Recent posts on the home page in both languages: the first post card rendered properly, but right before the second and third cards the literal string <article class="post rv"> appeared on screen inside a code box.
The cause was neither broken CSS nor a missing closing tag. It was how Hugo combines shortcodes and Markdown rendering.
Each numbered section on the home page renders its inner content through .Page.RenderString. Inside section 06, the rp-recent-posts shortcode looped over the latest three posts and called the rp/post-item.html partial with four spaces of indentation:
<div class="posts">
{{- range first $count . }}
{{ partial "rp/post-item.html" . }}
{{- end }}
</div>On the first iteration, the hyphen in {{- range ... }} trimmed the newline and the leading spaces before the partial call, so the first <article class="post rv"> sat right next to <div class="posts"> and rendered as normal HTML. From the second card onward, the previous partial ended with a regular newline and the four leading spaces survived at the start of the next line.
To Hugo’s Markdown parser (Goldmark), a line indented by four spaces after a newline inside RenderString is an indented code block (<pre><code>). It escaped the card’s opening HTML tag as literal code.
At 8:19 p.m., I stripped the four-space indentation from rp-recent-posts.html, post-item.html, and rp-social.html. On the next browser check, all three post cards lined up cleanly with zero leaked tags. By 9 p.m. that same night, I wrapped up the mobile framing and horizontal padding fixes along with the updated Open Graph share image.
What changed in agent coordination#
The next day, Thursday, 19 November, I made one more adjustment to the team structure: the orchestrator profile that receives my commands on Telegram is now named Atlas and serves as the focal point for routing requests and consolidating status when I ask for coordinated work away from the desktop.
That does not roll back the rule I set on 9 November:
- Scheduled routines still have no middleman: each routine agent continues reporting its result directly in its own chat window with me. Atlas steps in when I send a coordination or prioritization request, not to summarize other agents’ timers.
- External actions remain gated on my explicit approval: this post follows the exact same lock as previous Sundays — its own branch, a pull request opened by the Sunday 8 a.m. routine, no automatic merge, and no automatic posts or drafts on X.