Building this blog: from numbered topics to a living Quarto publication
Restructuring an engineering curriculum into a living technical blog and portfolio with multi-model AI workflows
The problem
Technical documentation often begins as a structured, numbered curriculum. As engineering work evolves, that format hits predictable constraints:
- Rigidity of numbered sequences. In a linear numbered list (
topics/01-...,topics/02-...), inserting new articles breaks sequential numbering, while adding topical posts outside the core sequence feels unnatural. - Broken incoming links. Moving from numbered directory paths (
/topics/01-identity-isolation/) to semantic slugs (/posts/identity-isolation/) breaks bookmarks, search indexing, and existing cross-references unless backwards compatibility is explicitly maintained. - The staleness trap. Most engineering blogs treat articles as immutable point-in-time snapshots. When a tool releases a breaking change or a security guardrail evolves, authoring a completely new post scatters information, leaving readers stranded on outdated guidance.
- Draft clutter and companion metadata. Authors often want companion artifacts alongside articles—such as executive summaries, newsletter drafts, or test scripts—without having static site generators compile them into public web pages.
To address these challenges, we transformed this site from a 14-topic repository into a full Quarto blog and portfolio, preserving existing URLs while adopting living-document standards and automated verification.
Site architecture and explicit rendering (_quarto.yml)
The site configuration in _quarto.yml establishes a clear project structure:
project:
type: website
render: # explicit: companions next to posts are never rendered
- index.qmd # landing page = About (Quarto `about:` template)
- blog.qmd
- series/*.qmd
- glossary.qmd
- posts/*/index.qmd
resources:
- "templates/**"
website:
title: "Your Name"
site-url: https://example.web.app # needed for the RSS feed
search: true
navbar:
left:
- href: index.qmd
text: About
- href: blog.qmd
text: R Engineering Playbook
- text: Series # a dropdown: one page per series
menu:
- href: series/foundations.qmd
text: Foundations series
- href: series/testing.qmd
text: Testing series
- href: series/pharma.qmd
text: Pharma seriesExplicit render lists keep companion files out of the site
By default, Quarto crawls the repository and renders every .qmd and .md file it finds into HTML.
In our repository structure, every article folder inside posts/<slug>/ contains companion files: summary.md (a 1-page executive summary) and message.md (a short social share post). By specifying an explicit render list (posts/*/index.qmd), Quarto compiles only the canonical index.qmd for each post. The companion files remain available in the repository for review and team sharing without creating orphaned HTML pages.
Dual listings: Blog grid and series pages
Readers approach documentation with different goals. Some want a chronological feed of recent technical notes, while others require a structured curriculum. We accommodate both with two dedicated listing views.
1. The Blog listing (blog.qmd)
The primary blog index uses a responsive grid layout with category filtering and sorting:
---
title: "R Engineering Playbook"
listing:
contents: posts
type: grid
grid-columns: 3
fields: [date, title, description, categories, reading-time]
categories: true
sort:
- "date desc"
- "title"
feed: true
page-size: 12
filter-ui: true
sort-ui: true
---Setting categories: true creates a sidebar that allows readers to filter posts by topic (e.g. “R packages”, “Agentic AI”, “GxP”).
2. Series pages (series/foundations.qmd)
To keep a reading order, each series gets its own page under series/, reachable from a Series dropdown in the navbar. A post joins a series with two front-matter fields, series: and order::
series: foundations
order: 1The series page lists the posts whose series matches, sorted by order:
---
title: "Foundations series"
subtitle: "From R development to R engineering"
listing:
contents: "../posts/*/index.qmd"
include:
series: foundations
sort: "order"
type: table
fields: [order, title, description]
field-display-names:
order: "#"
---A listing’s include: can filter on any front-matter field, not only categories (we checked this with Quarto 1.8.27 before relying on it). The table shows each series in reading order, regardless of publication dates.
We first used a category (“Foundations series”) for this. It worked, but every new series would have added another entry to the category filter, next to the topics readers actually filter by. A separate series: field keeps categories for topics and series for reading order.
URL stability: aliases preserve existing links
Renaming directory paths from topics/01-identity-isolation/ to posts/identity-isolation/ would normally create 404 errors for anyone visiting legacy URLs.
Quarto solves this through the aliases front-matter key:
---
title: "Identity & environment isolation"
series: foundations
order: 1
aliases:
- /topics/01-identity-isolation/index.html
categories: ["R", "Git", "Security"]
---During site compilation, Quarto inspects the aliases list and creates static redirect stubs at _site/topics/01-identity-isolation/index.html. Any request targeting the legacy path is automatically redirected to /posts/identity-isolation/. Verifying the build confirms that redirect files are properly generated in _site/topics/*.
Controlled category taxonomy
Uncontrolled tagging creates fragmented listing sidebars where github, gh-actions, and github-actions compete as near-duplicates.
We established a controlled taxonomy defined directly in blog.qmd’s front-matter header comments: - Every post receives between 2 and 4 taxonomy categories. - Non-taxonomy values are systematically removed. - Series membership is not a category: it lives in the series: field (see above). - Categories are a short, high-level list readers actually filter by (“R”, “Shiny”, “R packages”, “Agentic AI”, “GxP”, “Pharma”, “Git”, “CI/CD”, “Security”, “Quarto”, “Best practices”).
Articles as living documents
In software engineering, best practices change when runtimes update, APIs evolve, or new security vulnerabilities emerge.
Rather than writing fragmented follow-up posts (“Why my 2024 article was wrong”), our editorial rules establish that articles are living documents:
date-modifiedtracking: When an article is updated,date-modified: YYYY-MM-DDis added to its front matter alongside its originaldate.Explicit Updates callouts: The bottom of each updated article contains a standard callout recording the revision history:
::: {.callout-note collapse="false"} ## Updates - **2026-09-26:** <what changed, 1-3 sentences, with links> :::In-body weaving: New facts, commands, or code samples are woven directly into the relevant body sections rather than existing solely within the changelog box.
Post template: Each post follows base sections: The problem → The web-repo way → The R way. Other sections are included only when needed, with no default checklist.
Automated CI gates: previews and link checking
Every pull request modifying the playbook undergoes two automated gates before merging:
- Ephemeral preview channels: Each pull request renders and deploys to an isolated Firebase Hosting channel (
pr-<number>) that automatically expires 7 days after the last deploy (see ephemeral PR previews). Reviewers inspect rendered HTML rather than raw markdown diffs. - Offline link validation: An automated CI step runs
lychee --offlineacross all generated HTML files in_site/(see link checking rendered sites), while a local Python script mirrors the check before push. Renamed topics or broken internal links fail the build instantly.
The R way: patterns for R teams and package documentation
The patterns powering this blog translate directly to internal tooling within R-focused organisations:
- R package blogs & vignettes: An R package team can publish deep-dive tutorials alongside reference documentation by adding a
posts/folder and a Quarto blog listing. - Team knowledge bases: Engineering teams running Posit Connect or internal servers can use the same
aliasesmechanism to refactor legacy wiki paths without breaking corporate bookmarks. - Living standard operating procedures (SOPs): In regulated GxP environments, the “living documents” convention (
date-modifiedplus an explicit Updates log) provides transparent revision history for internal guidance and analytical playbooks.
Pitfalls we hit
- Listings on pages in subfolders.
series/foundations.qmdfirst usedcontents: ../postsandcontents: /posts; both rendered an empty table with the warning “doesn’t match any files or folders”. A relative glob worked:contents: "../posts/*/index.qmd". - Dark mode and Bootstrap variables. Quarto compiles separate light and dark stylesheets but doesn’t set Bootstrap’s
data-bs-theme="dark", so variables like--bs-tertiary-bgkept their light values in dark mode, and our callouts and inline code turned into white boxes. The fix is to derive surfaces from the theme’s own SCSS variables (--hv-surface: #{mix($body-color, $body-bg, 6%)}), which are compiled per theme. We also setrespect-user-color-scheme: trueso the site follows the visitor’s OS setting. - Outdated snippets. A post that shows your own configuration goes stale as the site evolves. Update it in place (see the living-documents rule above).
- 2026-09-26: Removed the end-of-post checklist and updated post template documentation to base sections problem → web-repo way → R way with no default checklist.
- 2026-09-26: Series moved from a category to a
series:front-matter field, and the Testing and Pharma series pages were added. The category filter now lists topics only. - 2026-11-13: The site’s SCSS theme moved from one
styles.scssfile into abrand/folder, so the dark-mode pitfall no longer names that file.