Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- External -->

Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ 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, shipped and deployed with the blog.
- The public addresses cut over separately.

See [Release History][history] for complete release notes and older versions.

## Table of Contents <!-- omit from toc -->

- [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)
Expand Down Expand Up @@ -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 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.

## 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.
Expand Down Expand Up @@ -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 |

Expand Down Expand Up @@ -241,18 +253,23 @@ 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
[media-redactions]: ./checks/media-redactions.json
[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

<!-- External -->

[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
24 changes: 24 additions & 0 deletions assets/css/extended/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
7 changes: 4 additions & 3 deletions content/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
18 changes: 18 additions & 0 deletions layouts/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- define "main" }}

<article class="post-single">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
</header>
<div class="about-profile">
{{- with .Params.cover.image }}
<img class="about-portrait" src="{{ . | absURL }}" alt="{{ $.Params.cover.alt }}" width="160" height="160">
{{- end }}
<div class="post-content md-content">
{{- partial "anchored_headings.html" .Content }}
</div>
</div>
{{- partial "extend_post_content.html" . }}
</article>

{{- end }}
Loading