Skip to content
Mehdi Kababfrontend / author
⁠The notebook

Fresh start: mehdi.kabab.name

The blog is back on mehdi.kabab.name: three sites merged into one, 59 old WordPress posts kept as they were, now generated with Astro.

The last post on pioupioum.fr dates from September 20, 2015. It covered CSS integration methodology under Drupal 7. Then nothing for eleven years: work, life, and a WordPress install slowly gathering dust.

The blog is back today, at a new address: mehdi.kabab.name.

Three sites merge

Until now, my content lived in three places:

  • pioupioum.fr, the “Bloc-note d’un développeur web” (“a web developer’s scratchpad”), opened in 2009 on WordPress;
  • livre-sass-compass.fr, the companion site of my book “Sass & Compass avancé”, published by Eyrolles;
  • mehdi.kabab.name, which until then hosted nothing but my CV.

Everything now lives on one site:

The old addresses still work: a link to pioupioum.fr or livre-sass-compass.fr takes you straight to the right page on the new site. RSS feeds follow the same route.

The migrated posts are kept as they were, even the ones that have aged badly. Compass is no longer maintained, and TextMate and Mac OS X are no longer part of my daily routine, but these posts are part of the blog’s history. A few recent TILs, including one on Fedora, have already taken their place alongside them.

For the record: pioupioum.fr in 2015

Here is what the blog’s home page looked like before the merge, with its Compositio theme, its tag cloud and the book cover in the sidebar.

Home page of pioupioum.fr in 2015: header “piouPiouM’s dev, Bloc-note d’un développeur web”, post “Drupal 7 : méthodologie d’intégration CSS” and a sidebar showing the book Sass & Compass avancé.

The full-page capture also shows the archives, the latest comments, the bookmarks and the footer.

Under the hood

Goodbye WordPress: the site is now statically generated by ⁠Astro.

MDX and React components

Each post is an Markdown + JSX (MDX) file: Markdown into which React components can be inserted, to keep rendering consistent and bring in rich interface elements. The 59 WordPress posts were converted to this format, with their comments archived and displayed read-only.

The LiveCode component is the best example: a lightweight, read-only CodePen that shows the HTML and SCSS sources side by side with the live rendering. It became necessary after SassMeister went away, the service that used to serve the interactive examples. The examples in Sass 3.3: the new Maps data type now use it: the original gists are archived with the site and replayed in the page.

⁠Zod validates each post’s metadata at build time.

A custom Markdown pipeline

Markdown goes through ⁠Satteri and a set of extensions written for the site:

  • French typography: non-breaking spaces before :, ;, ! and ?, French quotation marks;
  • abbreviations automatically enhanced with the <abbr> tag;
  • French-language footnotes;
  • ⁠Obsidian syntax, since that’s where I write my drafts.

Syntax highlighting goes through ⁠@pierre/highlights. It outputs CSS classes rather than inline colors, so the theme controls the colors.

An in-house design system

The interface rests on an in-house design system organized around Atomic Design principles:

  • 47 components: 8 atoms, 18 molecules, 18 organisms and 3 templates, plus 5 layout primitives;
  • CSS Modules;
  • three palettes: two light ones (terracotta, teal) and one dark one (espresso);
  • a ⁠Storybook catalog with built-in accessibility checks.

The Storybook stays private for now.

Little extras

  • a pattern generator: each post gets a generative cover, picked from 12 patterns and derived from its name, never repeating a pattern across three consecutive posts. Sharing images are built from them;
  • full-text search that is entirely static, powered by ⁠Pagefind, with no external service;
  • a bilingual site: the main content exists in French and English;
  • pages are preloaded on link hover, for near-instant navigation.

The code lives in a TypeScript monorepo, managed with pnpm and Turborepo.

So, what’s next?

The goal is simple: write again. Short TILs when I learn something, longer posts when the topic deserves it. The RSS feed is ready if you want to follow along.