From c8e6a9e5ec554ebf623186436e707a2e1d2111ea Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Tue, 29 Sep 2026 19:00:58 -0700 Subject: [PATCH 1/2] Give the About Page Its Own Layout and Describe the Family Site The about page's 480px cover was stretched across the 720px column. A dedicated layout shows it as a small round portrait beside the text, stacked above it on a phone, and drops the post meta and post footer. The cover stays in the front matter, so og:image still carries it, and its alt text now describes the picture. The about text links GitHub and LinkedIn. The README gains a section on the family site, how it ships inside the blog's release and where its operation is documented, and the release notes mention its move. Co-Authored-By: Claude Opus 5.5 --- HISTORY.md | 3 ++- README.md | 19 ++++++++++++++++++- assets/css/extended/custom.css | 24 ++++++++++++++++++++++++ content/about.md | 7 ++++--- layouts/about.html | 17 +++++++++++++++++ 5 files changed, 65 insertions(+), 5 deletions(-) create mode 100644 layouts/about.html diff --git a/HISTORY.md b/HISTORY.md index bb31f8bd..d758abaa 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -9,10 +9,11 @@ The blog's public address is [blog.insanegenius.com][blog-link]. ## Release History - Version 1.0: - - The blog moved from WordPress to a Hugo site built and verified by GitHub Actions and served by Caddy. The public address cuts over separately. + - The blog moved from WordPress to a Hugo site built and verified by GitHub Actions and served by Caddy. The public addresses cut over separately. - 108 posts, 2 static pages, 778 media files, converted to a Hugo site in a tree that mirrors the original URLs. - Personal data gates: image metadata stripped to an allowlist, archive redactions declared in a manifest and verified by hash, and the text of the pages and new posts scanned for addresses, coordinates, and other identifiers. - Publishes a self-contained release bundle carrying the site, the web-server config, and the redirect maps together, so a rollback reverts the rules and the content they refer to as one unit. + - The Viljoen family page moved off the blog to its own bilingual site at viljoen.family, shipped and served with the blog. diff --git a/README.md b/README.md index d8386091..7736e5b3 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,9 @@ The blog's public address is [blog.insanegenius.com][blog-link]. **Summary**: -- The blog moved from WordPress to a Hugo site built and verified by GitHub Actions and served by Caddy. The public address cuts over separately. +- The blog moved from WordPress to a Hugo site built and verified by GitHub Actions and served by Caddy. +- The Viljoen family page moved off the blog to its own site at viljoen.family, built and deployed with the blog. +- The public addresses cut over separately. See [Release History][history] for complete release notes and older versions. @@ -35,6 +37,7 @@ See [Release History][history] for complete release notes and older versions. - [Overview](#overview) - [Migration from WordPress](#migration-from-wordpress) +- [The Family Site](#the-family-site) - [How a Change Reaches the Site](#how-a-change-reaches-the-site) - [Keeping Personal Data Off the Site](#keeping-personal-data-off-the-site) - [What Happens While the Site Runs](#what-happens-while-the-site-runs) @@ -62,6 +65,14 @@ The site has served the same domain since 2008, across three platforms: Blogger How it was done is in [`capture/README.md`][capture-readme], and the account of it is a post on the site, [Moving This Blog From WordPress to Hugo][migration-post]. It covers what a WordPress export holds and what it leaves out, why the sitemap named barely a tenth of the addresses the site was actually serving, how the Blogger-era permalinks resolve through a lookup table rather than a pattern, why media fetched over HTTP is not the same bytes as the media in the export and only a content hash tells them apart, and which Hugo default moves every taxonomy archive to a new address without reporting anything. +## The Family Site + +The Viljoen family page, once a page on this blog, is its own site at [viljoen.family][family-link]. It is a single hand-written page in English and Afrikaans with no build step, and its source is [`sites/viljoen.family/`][family-site]. [GENEALOGY.md][genealogy] defines the lineage notation it uses. + +It ships with the blog rather than beside it. The release script copies it into the blog's bundle, and the same Caddy container serves it from its own site block. A family change therefore deploys, verifies, and rolls back as a blog release. The site block sends a browser whose first language is Afrikaans to `/af/`. The blog's old `/viljoen-family/` address and its short link redirect to the new site. The live gate checks both languages when `FAMILY_SITE_BASE_URL` is set. + +[OPERATIONS.md][operations-family] holds its host names, its web-server block, and the rollback caveats. Its own [README][family-readme] covers previewing it locally. + ## How a Change Reaches the Site A change starts on a branch in this repository and ends as bytes on a VPS. Every stage carries a gate, and three of them add a human read, because the failure this repository exists to catch is an address that stops answering, and no check that skips a running server can see one. @@ -164,6 +175,7 @@ flowchart LR | [`hugo.yaml`][hugo-config] | site configuration, taxonomy URLs, and the feed name | | [`checks/`][checks] | the URL contract and the gates that enforce it | | [`deploy/`][deploy] | the release script, the web-server config, and the redirect maps | +| [`sites/viljoen.family/`][family-site] | the family site, served beside the blog from the same release | | [`capture/`][capture] | the migration's provenance tooling, and how the site was derived from the old platform's exports | | [`ENVIRONMENT.md`][environment] | every configuration value, described once | @@ -241,6 +253,9 @@ Licensed under the [MIT License][license]\ [deploy-readme]: ./deploy/README.md [env-example]: ./.secrets/example.env [environment]: ./ENVIRONMENT.md +[family-readme]: ./sites/viljoen.family/README.md +[family-site]: ./sites/viljoen.family/ +[genealogy]: ./GENEALOGY.md [history]: ./HISTORY.md [hugo-config]: ./hugo.yaml [license]: ./LICENSE @@ -248,11 +263,13 @@ Licensed under the [MIT License][license]\ [migration-post]: ./content/posts/2026/08/01/moving-this-blog-from-wordpress-to-hugo.md [normalize-media]: ./scripts/normalize-media.py [operations]: ./OPERATIONS.md +[operations-family]: ./OPERATIONS.md#the-family-site [workflow]: ./WORKFLOW.md [blog-link]: https://blog.insanegenius.com [caddy-link]: https://caddyserver.com +[family-link]: https://viljoen.family [hugo-link]: https://gohugo.io [papermod-link]: https://github.com/adityatelange/hugo-PaperMod diff --git a/assets/css/extended/custom.css b/assets/css/extended/custom.css index 341e8c6b..dcb9f758 100644 --- a/assets/css/extended/custom.css +++ b/assets/css/extended/custom.css @@ -68,3 +68,27 @@ body { .gallery-cols-6 figure { width: 16.666666666%; } + +.about-profile { + display: flex; + gap: 24px; + align-items: flex-start; +} + +.about-portrait { + width: 160px; + height: 160px; + border-radius: 50%; + flex-shrink: 0; +} + +.about-profile .post-content { + margin: 0; +} + +@media (max-width: 600px) { + .about-profile { + flex-direction: column; + align-items: center; + } +} diff --git a/content/about.md b/content/about.md index 08c17143..c0928e70 100644 --- a/content/about.md +++ b/content/about.md @@ -3,12 +3,13 @@ title: About date: '2012-07-15T03:07:10+00:00' url: /about/ post_id: '137' +layout: about cover: - alt: CowboyPaintSmall + alt: Painted portrait of Pieter Viljoen smiling, in a brown cowboy hat and an orange bandana image: /media/2022/01/cowboypaintsmall.jpg --- Hi, my name is Pieter Viljoen, this is my personal blog I use to document my discoveries, frustrations, and delights. -I am an electronic engineer by training and work as a software engineer in the security and privacy industries. - The content reflects my personal opinions and are not reflective or representative of my employer or their customers. + +My open source projects are published on [GitHub](https://github.com/ptr727) and my professional profile is on [LinkedIn](https://www.linkedin.com/in/pviljoen/). diff --git a/layouts/about.html b/layouts/about.html new file mode 100644 index 00000000..a0ada991 --- /dev/null +++ b/layouts/about.html @@ -0,0 +1,17 @@ +{{- define "main" }} + +
+
+

{{ .Title }}

+
+
+ {{- with .Params.cover.image }} + {{ $.Params.cover.alt }} + {{- end }} +
+ {{- .Content }} +
+
+
+ +{{- end }} From 802185b63e6160416bc8b3d44164accbf16b2778 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Tue, 29 Sep 2026 19:05:44 -0700 Subject: [PATCH 2/2] Correct the Family Site Claims and Keep the About Page's Content Hooks The deploy workflow checks the blog alone, so the family section no longer says a family change verifies with it, and says the gate's family check is run by hand. The Afrikaans redirect happens from the root only, and the site has no build step, so the release note says shipped. The about layout keeps the anchored-headings and post-content extension partials, so a later heading or discussions link renders as on a post. Co-Authored-By: Claude Opus 5.5 --- README.md | 4 ++-- layouts/about.html | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7736e5b3..d40ade45 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ The blog's public address is [blog.insanegenius.com][blog-link]. **Summary**: - The blog moved from WordPress to a Hugo site built and verified by GitHub Actions and served by Caddy. -- The Viljoen family page moved off the blog to its own site at viljoen.family, built and deployed with the blog. +- The Viljoen family page moved off the blog to its own site at viljoen.family, shipped and deployed with the blog. - The public addresses cut over separately. See [Release History][history] for complete release notes and older versions. @@ -69,7 +69,7 @@ How it was done is in [`capture/README.md`][capture-readme], and the account of The Viljoen family page, once a page on this blog, is its own site at [viljoen.family][family-link]. It is a single hand-written page in English and Afrikaans with no build step, and its source is [`sites/viljoen.family/`][family-site]. [GENEALOGY.md][genealogy] defines the lineage notation it uses. -It ships with the blog rather than beside it. The release script copies it into the blog's bundle, and the same Caddy container serves it from its own site block. A family change therefore deploys, verifies, and rolls back as a blog release. The site block sends a browser whose first language is Afrikaans to `/af/`. The blog's old `/viljoen-family/` address and its short link redirect to the new site. The live gate checks both languages when `FAMILY_SITE_BASE_URL` is set. +It ships with the blog rather than beside it. The release script copies it into the blog's bundle, and the same Caddy container serves it from its own site block. A family change therefore deploys and rolls back as a blog release. The site block sends a browser whose first language is Afrikaans from `/` to `/af/`. The blog's old `/viljoen-family/` address and its short link redirect to the new site. The live gate checks both languages when `FAMILY_SITE_BASE_URL` is set. That check is run by hand, since the deploy workflow's own check covers the blog alone. [OPERATIONS.md][operations-family] holds its host names, its web-server block, and the rollback caveats. Its own [README][family-readme] covers previewing it locally. diff --git a/layouts/about.html b/layouts/about.html index a0ada991..02448846 100644 --- a/layouts/about.html +++ b/layouts/about.html @@ -9,9 +9,10 @@

{{ .Title }}

{{ $.Params.cover.alt }} {{- end }}
- {{- .Content }} + {{- partial "anchored_headings.html" .Content }}
+ {{- partial "extend_post_content.html" . }} {{- end }}