- Shell 35.9%
- JavaScript 17.2%
- Ruby 15%
- HTML 14.7%
- CSS 10.6%
- Other 6.6%
| .forgejo/workflows | ||
| .well-known | ||
| _data | ||
| _docs | ||
| _includes | ||
| _layouts | ||
| _plugins | ||
| _posts | ||
| assets | ||
| contact | ||
| docs | ||
| isms | ||
| scripts | ||
| services | ||
| tools | ||
| vpn | ||
| .gitignore | ||
| 404.html | ||
| _config.render-ads.yml | ||
| _config.yml | ||
| a0b7b24aeffec6816641327d42e57c39.txt | ||
| about.md | ||
| api.md | ||
| audit.md | ||
| contact.md | ||
| feed.xml | ||
| flake.lock | ||
| flake.nix | ||
| Gemfile | ||
| Gemfile.lock | ||
| index.html | ||
| infra.md | ||
| LICENSE | ||
| llms.txt | ||
| logging.md | ||
| nix-config.html | ||
| notes.md | ||
| openapi.json | ||
| privacy.md | ||
| README.md | ||
| robots.txt | ||
| security-policy.md | ||
| services.md | ||
| sitemap.xml | ||
| standards.md | ||
| terms.md | ||
| vpn.md | ||
YMRTECH
ymrtech.com — the personal site and portfolio of Yannick M. Richard, Linux Systems & Cloud Security Engineer. A terminal-themed static site built with Jekyll, hosted on a self-hosted NixOS server, and deployed through a self-hosted CI/CD pipeline.
The site started life as a Jekyll theme scaffold (Chirpy) and was later rebuilt from scratch with a custom theme; it now runs on the shared flat "probe" design system (assets/css/theme.css), the same palette-token + component library used by the clientsv portal. The layouts, CSS, and JS in this repo are all hand-rolled and self-contained. No theme gem is required at build time.
Pages
| Route | File | What it is |
|---|---|---|
/ |
index.html → _layouts/home.html |
Landing page: probe hero with the command list, trust metrics, CTAs |
/about/ |
about.md |
Bio, origin story, stack |
/services/ |
services.md |
Service offerings, each section linking its own focused page |
/services/devops/ |
services/devops.md |
Infrastructure as Code & DevOps — NixOS, CI/CD, containers, health-gated delivery |
/services/cloud/ |
services/cloud.md |
Cloud infrastructure — architecture, portability, cost, recovery |
/services/security/ |
services/security.md |
Security engineering — offense (recon, pentest) and defense (monitoring, SOC) |
/services/monitoring/ |
services/monitoring.md |
Monitoring & observability — metrics, logs, dashboards, alerting |
/services/email/ |
services/email.md |
Email infrastructure — submission, authentication, deliverability |
/services/vpn/ |
services/vpn.md |
VPN & encrypted networks for client operations (the product page is /vpn/) |
/services/audit/ |
services/audit.md |
Consulting & audit — a client engagement (the signed report is /audit/) |
/infra/ |
infra.md |
How the fleet is built and operated — declarative NixOS, the two flakes, the deploy pipeline, the recovery plan |
/vpn/ |
vpn.md |
VPN service in one read: what it does and does not do, who runs it, tiers, price |
/vpn/technical/ |
vpn/technical.md |
The VPN in technical detail — protocols, resolvers, key handling |
/vpn/docs/ |
_docs/index.md |
The VPN guides: short client-facing documentation for the service |
/vpn/docs/tiers/ |
_docs/tiers.md |
Guide: choosing a tier, and what each DNS posture hides |
/vpn/docs/dns-blocking/ |
_docs/dns-blocking.md |
Guide: ad/tracker blocking on the security tier, and its limits |
/vpn/docs/whitelisting/ |
_docs/whitelisting.md |
Guide: requesting a blocked domain be allowed |
/llms.txt |
llms.txt |
Machine-readable index of the docs tree, generated from _docs/ |
/logging/ |
logging.md |
Exactly what the VPN logs, and what it cannot log |
/privacy/ |
privacy.md |
Privacy policy |
/terms/ |
terms.md |
Terms & fair use |
/audit/ |
audit.md |
Published logging audit — signed reports and their history |
/audit/isms/ |
isms/*.md + isms/index.md |
The management system itself (scope, risk register, SoA, change management, incident response, internal audit, supplier review) |
/standards/ |
standards.md |
The standards the fleet is held to, and the evidence for each |
/contact/ |
contact.md |
Contact page (direct email/social links) |
/contact/thanks/ |
contact/thanks.md |
Form thank-you page (kept for a future form) |
/notes/ |
notes.md |
Notes index: every post, newest first, plus the feed link |
/notes/<slug>/ |
_posts/YYYY-MM-DD-<slug>.md |
A post. The slug is stable and is the post's campaign tag |
/feed.xml |
feed.xml |
Atom feed over _posts/ |
/sitemap.xml |
sitemap.xml |
Every page and post this build produced |
/robots.txt |
robots.txt |
Allows crawling, points at the sitemap |
/<key>.txt |
<key>.txt |
The IndexNow key: its body is its own name, and the endpoint fetches this URL to verify every submission |
/notes/categories/ |
generated | Hub: every category and tag, with counts |
/notes/category/<c>/ |
generated | One page per category |
/notes/tag/<t>/ |
generated | One page per tag |
Repository layout
.
├── .forgejo/workflows/ymrtech-deploy.yml # CI/CD pipeline (PR gate + preview → staging → prod)
├── _config.yml # Site metadata + build settings
├── _data/audit-pins.json # Pinned hashes of the published audit reports
├── _data/vpn_experiments.yml # The /vpn copy experiment: variants, framing, what it tests
├── _includes/rum-init.html # Cookieless RUM bootstrap (see scripts/check-rum-cookieless.sh)
├── _includes/figure.html # One published figure: <img> with width/height/alt (see Figures)
├── _includes/vpn/ # Shared /vpn sections — the variants differ only in copy and order
│ ├── cta.html # The one CTA block: stamps ?e=<exp>&v=<code> on the account link
│ ├── cta-forward.html # Carries utm_*/gclid/fbclid onto that link (first-party, no storage)
│ └── who-runs | what-you-get | tiers | price | verify | not-kept | faq.html
├── _includes/docs/nav.html # The guide switcher rendered on every /vpn/docs/ page
├── _docs/ # The VPN guides: one file per guide → /vpn/docs/<slug>/
│ ├── index.md # the /vpn/docs/ landing page (permalink: /vpn/docs/)
│ └── tiers | dns-blocking | whitelisting.md
├── llms.txt # Machine-readable docs index, generated from _docs/
├── _layouts/
│ ├── default.html # HTML shell: header, nav, footer, status bar, scanline
│ ├── vpn-variant.html # One layout for every /vpn copy variant (+ its variant marker)
│ ├── home.html # Landing page (probe hero, stats, CTA)
│ ├── page.html # Wrapper for markdown content pages
│ └── post.html # Post layout: header, campaign tag, prev/next, feed link
├── _plugins/asset_url.rb # Content-hashed asset URLs (theme.css, style.css, fonts)
├── _plugins/sitemap_lastmod.rb # Dates every sitemap entry from its own last commit
├── _posts/ # Notes: YYYY-MM-DD-<slug>.md, one file per post
├── notes.md feed.xml # The /notes/ index and its Atom feed
├── vpn.md vpn/v2.md vpn/v3.md # The /vpn copy variants: vpn.md is the control (a)
├── vpn/technical.md # The VPN technical companion
├── logging.md privacy.md terms.md # What we log, privacy policy, terms & fair use
├── audit.md standards.md # The signed audit report, standards
├── services/ # Service pages: services.md + one page per discipline
├── isms/ # Management-system documents + index.md
├── assets/
│ ├── css/theme.css # Shared "probe" theme: tokens + components (no site rules)
│ ├── css/style.css # Site-only: terminal/card-grid/contact-form overrides
│ ├── bimi/logo.svg # BIMI brand mark for the mail domains
│ ├── figures/*.svg # The prose pages' diagrams, drawn in theme.css's palette
│ ├── js/main.js # Vanilla JS: status-bar clock, smooth scroll, contact form
│ ├── js/theme.js # Light/dark switch (reads and sets the palette on <html>)
│ ├── js/vendor/faro.<version>.min.js # Vendored, self-hosted RUM client
│ ├── vendor/README.md # Where the vendored assets come from + their hashes
│ └── favicon.ico
├── about.md contact.md services.md infra.md index.html
├── contact/thanks.md
├── tools/
│ ├── icon-svg.py # Renders a registry icon; generates clientsv's chromeicons.go
│ ├── check-vendor-hash.rb # Build guard: vendored assets match their recorded hashes
│ ├── check-rum-cookieless.mjs # Build guard: the RUM client is first-party and cookieless
│ ├── check-snippets.mjs # Build guard: every page's title and description fit a search result
│ └── audit-report.rb # Generates + verifies the /audit/ page
├── scripts/
│ ├── check-notes.sh # Posts, index, feed and utm_content stay in agreement
│ ├── check-sitemap-lastmod.sh # Every sitemap entry carries a usable <lastmod>
│ ├── check-docs.sh # Every guide renders, is linked and indexed, and leaks nothing
│ ├── check-vpn-variants.sh # /vpn variants are built, anchor-complete and measurable
│ ├── check-fragment-resolution.sh # #fragment targets resolve to ids, not selectors
│ ├── check-snippets.sh # Every page fits a snippet, and no two share a title
│ ├── check-theme.sh # Palette tokens are declared, wired and switchable
│ └── check-contact-form-visible.sh # The contact form is present in the built output
├── Gemfile / Gemfile.lock # Jekyll + html-proofer (pinned)
└── flake.nix / flake.lock # Nix dev shell (ruby, bundler, node, yarn)
VPN guides — /vpn/docs/
/vpn/docs/ is the client-facing guide tree: short, task-shaped guides for the
VPN service (tiers, DNS ad/tracker blocking, whitelisting). It sits under the
product it documents — /vpn/ is the service a client buys, these are its docs —
and the site nav reaches it from the vpn group. It is a Jekyll
collection (_docs/), not the docs/ directory above — that one holds
internal notes and is excluded from the build, and exclude matches an entry
as a PREFIX, so a source file may not be named docs*.md at all (a page called
docs.md never builds; that is what keeps the internal directory out).
- One file per guide:
_docs/<slug>.mddeclarespermalink: /vpn/docs/<slug>/, and_docs/index.md(front matterindex: true) is the landing page at/vpn/docs/(_config.yml sets the collection permalink to/vpn/docs/:name/). The collection default in_config.ymlgives them the ordinarypagelayout, so the guides are themed, indexed and canonicalised like every other page. _includes/docs/nav.htmlrenders the guide switcher on every docs page from the collection, so a new guide cannot leave the others unlinked.llms.txtis generated from the same collection (an llms.txt-style index for assistants), andsitemap.xmllists the collection explicitly: collection documents are not insite.pages, so without that loop the guides would be built and linked but never crawled.- Nothing from the private infrastructure docs may appear here. The guides
are written in terms of what a client can see — the tunnel's own resolver
addresses, the portal, the published audit — and
scripts/check-docs.shfails the build if a guide (source or rendered) names the private repository or carries a management-mesh address.
scripts/check-docs.sh runs in all four CI jobs and asserts that every
_docs/*.md rendered at the permalink it declares and that the permalink agrees
with its file name, that each guide carries its own title, that the index and
llms.txt both link it, that llms.txt starts with its H1, and that no internal
material leaked in.
Local development
The Nix flake provides a pinned dev environment:
nix develop # enters the ymrtech-dev shell (Ruby 3.3, bundler, node, yarn)
bundle install # first time only (skipped automatically if Gemfile.lock present)
bundle exec jekyll serve --livereload
Or without Nix, any Ruby 3.3 + bundler works:
bundle install
JEKYLL_ENV=production bundle exec jekyll build # output in _site/
Note: builds require
JEKYLL_ENV=productionto match what CI does (affects asset handling and HTML compression).
Icons — one registry, and no icon font
Every icon on the site is an inline SVG on a 16x16 grid, drawn from one registry:
# _data/icons.yml — one entry per destination
cloud:
group: nav
use: "nav · services/cloud"
old: "U+F0026" # the code point this replaced, kept so the swap is auditable
d: # path data on a 16x16 grid
- "M5.2 12.4 H10.8 A2.7 2.7 0 0 0 11.3 7.05 A3.8 3.8 0 0 0 4.5 6.6 A2.7 2.7 0 0 0 5.2 12.4 Z"
{% include icon.html name="cloud" %} {# 16px, currentColor #}
{% include icon.html name="ok" sz=28 %} {# one-off size #}
{% include icon.html name="vpn" title="VPN" %} {# optional accessible name #}
_includes/icon.html is the only renderer on the site. It emits a 16×16
fill="none", stroke="currentColor", 1.5-wide, round-capped
<svg aria-hidden="true">; a string in d starting with < is emitted as raw
markup (so an icon can use a rect or circle), anything else becomes a
<path d="…">.
What this replaced
The icons used to be Nerd Font private-use code points (U+F0026 and friends),
and the site shipped its own ~6 KiB font subset to draw them: a build artifact
with its own regeneration gate (tools/nerd-font-subset.py), an @font-face
block, files under assets/fonts/, and a failure mode no diff could show — a
code point the subset did not map rendered as a tofu box for every visitor
without a Nerd Font installed. That is what it looked like on the last device
that did not have one.
The subset is gone, with everything that existed only to serve it:
assets/fonts/, tools/nerd-font-subset.py, tools/icon-codepoints.txt and
tools/check-icon-coverage.rb. The font stack no longer names a private-use
face, and no @font-face remains. An inline SVG is markup: it cannot go
missing, it adds no request, and it needs no build step.
The Go half — one drawing, two languages
The portal cannot render Liquid: the shared chrome is Go string literals in
clientsv/internal/api/chrome.go. So the same drawing has to exist in two
languages, and "the same" has to be checkable rather than asserted.
tools/icon-svg.py is that bridge — it reads this registry and prints, byte
for byte, the markup icon.html would print:
tools/icon-svg.py --list # every icon name
tools/icon-svg.py --svg brand # the markup for one icon
tools/icon-svg.py --go # regenerate clientsv's chromeicons.go
tools/icon-svg.py --check FILE... # every 16x16 svg in FILE is a registry render
--go output is committed as clientsv/internal/api/chromeicons.go. --check
is the standalone equivalent of what scripts/check-icons.sh enforces: the
published chrome (_includes/chrome/anonymous-*.html) draws only what the
registry draws. (The gate implements that comparison in bash so it needs no
Python on the runner; --check is the same rule for a human or a script.)
Colour is never set in an icon — the wrapper decides (.color-success, a
.pill), so one drawing serves every surface. Size comes from the sz
argument, never from a CSS width.
sz, not size, is the one naming rule here that is load-bearing. Liquid
resolves a missing Hash key by falling back to the method of that name, so
include.size on an include that passed no size returns Hash#size — the
number of keys, 1 — and the icon is emitted width="1" height="1". Nothing
errors, nothing logs; the icon is simply invisible, and it stays invisible in
every box whose own CSS does not happen to set a width. Any parameter read off
include must therefore avoid the Hash method names (size, length, count,
keys, first, last). scripts/check-icons.sh fails the build if
include.size returns or if a call site passes size=, so the trap cannot come
back quietly.
The rules are deliberately strict, because a site-wide icon swap is where icon sets rot:
- One name = one meaning. Read the
usefield before reusing a drawing somewhere new. Two names must never share one drawing (that is what the</>mark did for both devops and UTF-8 before it was split). - Never paste an
<svg>into a page. Go through the registry, or one meaning acquires two drawings that then drift. The shared chrome is the one place literal SVG appears, and it is held to the registry by--checkrather than excused from it. - An unknown name is a red cross in the page (
.i-unknown) and a build failure in CI, never a silent blank.
The icon gate
scripts/check-icons.sh runs in every job:
bash scripts/check-icons.sh
# 37 icons in the registry
# 31 of 37 icons stand in for a Nerd Font code point
# _includes/chrome/anonymous-header.html: 21 icon svg(s), every one drawn from _data/icons.yml
# _includes/chrome/anonymous-footer.html: 6 icon svg(s), every one drawn from _data/icons.yml
# check-icons: ok — 37 icons, every include resolves, the chrome is drawn from the registry,
# no private-use glyph in any tracked file
It fails when a registry entry loses a field, when an {% include icon.html %}
names something that is not in _data/icons.yml, when a page pastes its own
16x16 svg instead of including one, when any tracked text file draws a
private-use glyph at all (there is no allowlist and no terminal-art exemption
any more — the last glyph was the shell prompt, and that is the brand mark now),
or when the published chrome carries an svg the registry does not draw.
The chrome is the portal's, byte for byte
_includes/chrome/anonymous-header.html and anonymous-footer.html are not
ours to draw: they are the portal's own chrome, written by
clientsv/cmd/chromedump and pinned byte-for-byte against the live render by
scripts/check-chrome.sh. They therefore cannot hold Liquid, and their icons
are literal SVG taken from this same registry — that is what
tools/icon-svg.py --check enforces, so the bar cannot acquire a second drawing
of a meaning.
A change to those icons is a coordinated landing across both repositories:
the portal re-renders (chrome.go → chromedump → these files) and the site
carries the new bytes. Neither side can be judged against the other's landed
state while the change is in flight, so the private repo declares the site ref
carrying the paired bytes in chrome/PAIR — the mechanism is documented in
clientsv/.forgejo/scripts/chrome-drift.sh.
The mark, the favicon and the share card
The brand mark is a tunnel bore with a Y braced inside it — the letter
propping up the arch. It is drawn, not typeset: two filled paths on a 192 grid,
no stroke, no font glyph, so it renders the same in every engine and needs no
font at all. The 16px icon of the same mark is a separate stroke drawing —
the brand entry in _data/icons.yml — because the filled lockup is right at
favicon size and too heavy in a nav row.
assets/mark/*.svg is the only place that drawing exists, and every raster
asset is rendered from it:
| Source | Renders to | Notes |
|---|---|---|
mark-h4.svg |
all three frames of assets/favicon.ico (16, 32, 48) |
the mark itself, and the reference every other source is checked against. A tab is the smallest place the brand appears, so it shows the brand: 20% ink at 16px is a small logo, not a different one |
touch.svg |
assets/apple-touch-icon.png (180px) |
full-bleed and opaque: iOS applies its own mask, and a pre-rounded icon reads as a shrunken tile |
og-default.svg |
assets/og/og-default.png (1200×630) |
the share card, one per site, dark-only by design — the viewer's OS theme is not ours to read in someone else's timeline |
Two of those assets are drawn light and two dark, because each is drawn
for the ground it lands on rather than for the site's own page. The favicon and
the BIMI logo sit in a tab strip and in a mail client's logo row, both light
grounds, so they use the light palette: a white ground with the letter in
#26343a. The touch icon and the share card sit on the dark page and in someone
else's timeline, and stay dark. All four share the mark's geometry; only the
palette differs.
bash scripts/build-mark-assets.sh # rerender every asset from assets/mark/
The script needs chromium and python3, which nix develop provides. Chromium
does the rasterising and not ImageMagick: ImageMagick's SVG renderer ignores
fill-rule="evenodd", so the arch comes out filled solid and the letter
vanishes. tools/png-to-ico.py only packs the finished PNG frames into the ICO
container, and reads each frame's size out of its IHDR rather than trusting an
argument, so a directory entry can never disagree with its payload.
The script checks the sources before it renders anything, because both failures
it guards are silent ones. Every source must parse as XML — a stray -- inside a
comment, which is the natural way to write a CSS variable name in prose, is
illegal in XML and made chromium render a blank frame without failing. And the
mark-h4.svg is the reference and every other source must carry its two path
strings verbatim: nothing links them, so a path edited in one and not the others
leaves four valid sources drawing different marks, and no render-time check can
see it — every frame is still the right size with the right amount of ink. That
check is geometric rather than chromatic on purpose: the favicon and the BIMI
logo draw the letter light and the touch icon and the card draw it green, so a
test keyed to a fill colour would stop seeing the light sources at all.
tools/png-stats.py reports each frame's ink as the share of the frame that is
not the ground, the ground being whatever colour covers most of the frame. That
is what lets one check span both palettes — keyed to a single accent colour it
would report 0% on the light favicon and call a good frame blank. The per-frame
band is wide on purpose: it catches a blank frame (0%) and a solid one (~70%,
which is the bore of the arch when fill-rule="evenodd" is ignored), not a
tenth of a percent.
The hex literals live in the .svg sources rather than in theme.css: a raster
asset is fetched on its own, long after the page, and carries no CSS variables
with it. scripts/check-theme.sh scans tracked .html, .css and .js files
for colour literals and deliberately does not scan .svg, which is what makes
those sources the right home for them.
assets/bimi/logo.svg is the same mark in the BIMI variant — SVG Tiny PS,
white ground, the letter in #26343a, the light palette a mail client's white
background calls for — and it is not rendered by this script. It is served
straight to mail clients at a URL pinned in DNS, so it must stay valid against
the BIMI P/S profile (SVG_PS-latest.rnc), square and at least 96px, and any
change to it republishes a live DNS-referenced asset.
The per-note share card
Every note gets its own 1200×630 OpenGraph card, rendered at build time from
assets/mark/og-post.svg by assets/og/per-post-og.rb (loaded by
_plugins/per_post_og.rb) and published at
/assets/og/notes/<slug>.png. The template is the one source of truth for the
frame, the tokens and the palette; a note only supplies its title, category,
date and slug.
The cards are PNG, not SVG, because the consumers of og:image do not
render SVG: facebookexternalhit, LinkedIn and X fetch the file and show nothing
for it, so an SVG card is the same as no card on exactly the timelines that
matter. The build therefore rasterises, and it does so without a browser — the
ci runner carries no chromium and the site build is not allowed to go looking
for one. The rasteriser is a package in this repo's flake,
packages.<system>.og-raster (resvg over a pinned font directory, so the
same note renders to the same bytes on any host that builds the site), and
scripts/og-raster.sh is the one resolver for it: $OG_RASTERISER when
nix develop exported it, else nix build .#og-raster, else a loud failure.
bash scripts/build-og-cards.sh # render every card to a temp dir
bash scripts/build-og-cards.sh --out ~/cards # ... and look at them
bash scripts/build-og-cards.sh --site _site # verify a built site
The verifier and the build share the generator, so a preview cannot disagree
with what the build publishes. --site asserts what a crawler would see: every
note's og:image, twitter:image and BlogPosting.image name its own PNG,
no two notes share one, each is a real 1200×630 PNG (not just a file with the
right name), and no SVG card is left published beside them.
Notes — the content engine
/notes/ is the index, feed.xml is an Atom feed over the same posts, and
_posts/ holds the posts themselves. No plugin, no theme gem, no third-party
reader: the feed is a hand-written template, and the index is a page that loops
over site.posts. Both carry the same content-hashed asset links as the rest of
the site, because they go through the same layout.
The old /writing/ paths
The section was renamed from /writing/ to /notes/, and the page, the plugin
and the gate moved with it: notes.md, _plugins/notes_taxonomy.rb,
scripts/check-notes.sh. The old prefix is not published again: a post has one
URL and one canonical link, and a second copy of every page under the retired
name is the duplication that canonical exists to prevent, not a courtesy.
The only thing that still quoted /writing/ was the shared portal chrome — the
section row in the navigation bar, which is rendered by the portal and only
copied here (see _includes/chrome/README.md). A
redirect that exists to excuse someone else's hard-coded link is not a route; the
link is fixed where it is defined, so the portal's row now spells notes and
points at /notes/, and this repository only re-copies the portal's render.
Jekyll will still hand two pages the same rendered body if they are ever built at
one path — its page registry and its Liquid template cache both key on the path,
so the second page inherits the first one's rendered template. That is why every
generated page in _plugins/notes_taxonomy.rb passes its own URL, trailing
slash included, as the page's dir, and never File.dirname(url), which drops
the last segment (File.dirname("/notes/tag/ci/") is /notes/tag).
A post is one file, _posts/YYYY-MM-DD-<slug>.md:
---
layout: post # set by the _posts default in _config.yml
title: "…"
description: "…" # index card + meta description + feed summary
utm_content: "<slug>" # the stable slug (see below)
permalink: /notes/<slug>/
categories: [networking] # exactly one, and it becomes a page
tags: [vpn, dns] # lowercase + hyphens: each becomes a page
---
The slug is a stable identifier. It appears in three places that must agree —
the file name, the permalink, and utm_content — and a published slug is never
renamed, so a click that arrives carrying utm_content=<slug> stays attributable
to the post it came from. _layouts/post.html is the only place the campaign tag
is built, from the notes.utm block in _config.yml:
?utm_source=ymrtech&utm_medium=notes&utm_campaign=notes&utm_content=<slug>
so the traffic a post produces is separable — by channel and by post — from the traffic the same page produces for anything else that links to it.
scripts/check-notes.sh runs in all four CI jobs and fails the build when a
post's file name, utm_content, declared permalink and rendered campaign tag stop
agreeing, when a post is missing from the index or the feed, when the feed carries
a different number of entries than there are posts, when feed.xml stops being
well-formed XML, when a declared category or tag has no built archive page or the
post does not link it, and when a post page lacks its canonical link, its
og:title, its BlogPosting structured data, or its line in sitemap.xml.
Renaming a slug is a red build, not a silent re-attribution — and so is shipping a
label that leads nowhere.
The crawl surface
A post a crawler cannot find, or cannot attribute to a canonical URL, is a post nobody arrives at. Four things make the notes indexable, and each is asserted rather than assumed:
-
One canonical URL per page, never the preview one.
_layouts/default.htmlbuildscanonicalfromsite.url+page.url, not from theabsolute_urlfilter, because a PR preview is built with a baseurl override (/preview/pr-<N>/). A preview advertising itself as the canonical copy of a real page would tell a crawler that the real page is a duplicate of a branch. Previews are alsonoindex— in the<meta name="robots">tag here and on the wire (X-Robots-Tag, which the deploy verifies on the served URL) — so they are never indexed under either name. -
OpenGraph and Twitter cards carrying the same title, description and URL, plus
article:published_timeand onearticle:tagper tag on a post. -
BlogPostingstructured data with aBreadcrumbList, so a post states its own title, dates, section, keywords and author to anything that reads JSON-LD. -
sitemap.xmlandrobots.txt, both produced by the build: the sitemap lists every page and post and dates every entry with alastmod— the committer date of the last commit that touched that entry's own source, or (for a post) its declared date. It is never the build time: a stamp that moves on every deploy is how a crawler learns to ignore the field.robots.txtpoints at it. Previews are not mentioned here because they are not on this site: they live under/preview/on the staging host, which serves them to the mesh only. -
IndexNow, the push half of that pair.
robots.txtandsitemap.xmlwait for a crawler to come back; the production deploy instead POSTs the URLs it changed, so Bing, Yandex, Seznam and Naver fetch them now. Google does not read IndexNow — its path is Search Console, which is a separate property claim.The key is a committed file at the site root,
<key>.txt(32 hex characters), whose body is its own name: the endpoint verifies every submission by fetchinghttps://ymrtech.com/<key>.txtand comparing the body to the key, so the file is committed rather than generated per run and the URL never moves. The changed-URL list comes from the deploy itself — arsync -aincdry run names exactly the files whose content that deploy replaces, which is also the only way to catch a page that moved because a layout or an_includes/partial changed.scripts/check-indexnow.shasserts the key contract over the tree and the build (one key file, published byte for byte, still absent from the sitemap,robots.txtstill pointing at the sitemap, and the submit step wired into the production deploy), andscripts/tests/test-indexnow-gate.shproves each arm reds.
The archives are generated by _plugins/notes_taxonomy.rb from the posts
themselves: /notes/categories/ is the hub, and /notes/category/<c>/ and
/notes/tag/<t>/ are one page per value, each listing every post that carries it.
A hand-written archive goes stale the moment someone adds a category; a generated one
cannot disagree with the posts, and the gate fails the build when a declared value
ends up with no page. _layouts/post.html links each post to its own two archives
and to the other posts in its category, so every post is reachable from /notes/
in at most two hops.
Adding a post: create _posts/YYYY-MM-DD-<slug>.md with the front matter
above, and let CI verify it — or locally, nix develop -c bundle exec jekyll build
then bash scripts/check-notes.sh.
CI/CD — the whole loop
Everything runs on self-hosted NixOS hardware in my own fleet — Forgejo for the repo and its Actions runners, mail for the build/test jobs, public for the deploy jobs. There is no SaaS CI and no SaaS host in the loop.
PR (branch → main) merge / push to main manual "Promote to production"
│ │ │
▼ ▼ ▼
build + gates + build + gates + build + gates +
html-proofer html-proofer html-proofer
+ preview deploy → rsync → /srv/ymrtech-stage → rsync → /srv/ymrtech
(merge gate) stage.ymrtech.com ymrtech.com
/preview/pr-<N>/ (until closed)
pull_request→ main — build + html-proofer plus the repo's own guards, and a preview deploy of the branch atstage.ymrtech.com/preview/pr-<N>/(published with--baseurl /preview/pr-<N>so path-absolute links still resolve). The preview directory is removed when the PR closes. This is the merge gate, and the preview is what makes the gate reviewable.push→ main — same build + tests, thenrsyncto staging (/srv/ymrtech-stage, served atstage.ymrtech.com). Every merge to main is automatically verified on staging first. The staged copy is then rewritten so every same-site absolutehrefnames the origin actually serving it (https://stage.ymrtech.com, path preserved) — the same rewrite the preview gets — and the deploy fails if a production href survives the rewrite or if the rewrite dropped a path. Only<link rel="canonical">keeps the production URL, because the layout deliberately names production as the canonical copy (see The crawl surface).workflow_dispatchwith the Promote to production checkbox — re-runs the full test suite, thenrsyncto prod (/srv/ymrtech, served atymrtech.com).
main is the release branch for both environments — the environments differ by trigger, not by branch, so staging never drifts from what ships. The pipeline lives in .forgejo/workflows/ymrtech-deploy.yml.
What makes it all possible
The site is a small part of a larger self-hosted NixOS fleet. The NixOS host config for the public server lives in the ymrtech/nix-config repo — hosts/public/default.nix. The pieces that make this site possible:
1. The site root is a tmpfs mount
The deploy targets are tmpfs mounts, owned by a dedicated deploy uid/gid with mode 750 — the runner runs as a transient dynamic user that is a member of that group, so CI can write without world-writable permissions:
# hosts/public/default.nix#L255-L257
"/srv/ymrtech".device = "none";
"/srv/ymrtech".fsType = "tmpfs";
"/srv/ymrtech".options = [ "mode=750" "uid=984" "gid=981" ];
# Staging site — same pattern as prod, populated by the CI pipeline
"/srv/ymrtech-stage".device = "none";
"/srv/ymrtech-stage".fsType = "tmpfs";
"/srv/ymrtech-stage".options = [ "mode=750" "uid=984" "gid=981" ];
# Per-PR previews — one tmpfs, served under a path
"/srv/ymrtech-preview".options = [ "mode=750" "uid=984" "gid=981" "size=2G" ];
2. Caddy serves every environment
Caddy is the reverse proxy / static file server. The prod vhost serves the built site with security headers, gzip, and JSON access logs; the staging vhost mirrors it exactly, pointing at /srv/ymrtech-stage instead, and also serves each PR's preview out of /srv/ymrtech-preview:
# prod — hosts/public/default.nix#L1309-L1311 (inside the "ymrtech.com" vhost)
root * /srv/ymrtech
file_server
try_files {uri} {uri}/
# staging — hosts/public/default.nix#L922-L924 (inside the "stage.ymrtech.com" vhost)
root * /srv/ymrtech-stage
file_server
try_files {uri} {uri}/
TLS is handled by Caddy's ACME integration for ymrtech.com, stage.ymrtech.com, and www.stage.ymrtech.com.
3. Forgejo + self-hosted Actions runner
The repo itself lives on the self-hosted Forgejo instance. CI jobs run on self-hosted runners in the same fleet: the light build/test jobs land on mail (ci:host), and the deploy jobs — which rsync into public's tmpfs mounts — land on public (deploy:host), so a deploy is a local write, not an SSH hop:
# hosts/public/default.nix — L1494 (the runner instance, labels at L1545)
gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.ymrtech = {
enable = true;
name = "ymrtech-runner";
url = "http://localhost:3000";
tokenFile = config.sops.secrets.forgejo-runner-token.path;
labels = [ "deploy:host" "gate:host" ];
hostPackages = with pkgs; [
ruby_3_3
bundler
git
rsync
nodejs
...
];
};
};
The runner's hostPackages is what gives the CI jobs Ruby, bundler, rsync and node — the same toolchain the site build needs. Each runner's effective label list lives in a SOPS-rendered runner config, so the labels attribute above and the secret must be changed together.
4. The rest of the stack
- SOPS + age — secrets (runner token, deploy user password, coturn auth) are encrypted at rest and decrypted at build time.
- AmneziaWG (WireGuard) — all internal traffic routes through an encrypted VPN to a West Montreal datacenter; the public host only exposes 80/443 (plus TURN ports).
- Monitoring — VictoriaMetrics, VictoriaLogs, Grafana, and Uptime Kuma watch the whole fleet (see the monitoring module in nix-config).
Figures
The pages that argue in prose carry one published figure each — the diagrams the 2026-10 audit asked for, not decoration. They are authored through one partial:
{% include figure.html src="/assets/figures/retention.svg" w=900 h=400
alt="…the information, in words…" caption="…optional…" %}
- The art lives in
assets/figures/*.svgand is a self-contained plate: its ground, rules and ink are the dark palette's own values, taken fromassets/css/theme.cssthe wayassets/mark/*.svgalready does, so one asset reads correctly in both themes instead of needing a second drawing per theme. w/hare the SVG's own viewBox, printed aswidth/heightso the reader gets the box before the bytes arrive;.figure img { height: auto }inassets/css/style.cssthen treats that pair as an aspect ratio rather than a fixed size.- The
altdescribes the information.tools/check-web-standards.mjsfails the build on a missing or file-naming alt, on awidth/heightpair that disagrees with the art's viewBox, on asrcthis build does not publish, on a figure that is not lazy-loaded or is under 800 bytes, and on any of the five pages losing the figure it now carries.
Testing
html-proofer is the unit test suite — it checks the built _site/ for broken internal links, missing images, and invalid HTML:
bundle exec htmlproofer _site --disable-external --allow-hash-href
--disable-external skips external URLs (they change and rate-limit in CI); --allow-hash-href allows #fragment links.
The icon registry is verified too, and needs no Ruby and no build output — bash scripts/check-icons.sh fails when an {% include icon.html %} names an icon the registry does not have, when a page pastes its own 16x16 svg, when any tracked file draws a Nerd Font private-use glyph, or when the published chrome carries a drawing the registry does not. See Icons — one registry, and no icon font.
Both CI jobs also run the repo's own shell guards over the built output:
| Guard | What it fails on |
|---|---|
scripts/check-notes.sh |
a post whose file name, utm_content, permalink and rendered campaign tag disagree; a post missing from the index or feed; a malformed feed.xml; a category or tag with no archive page; a post page without its canonical link, og:title or BlogPosting data; a post missing from sitemap.xml |
scripts/check-sitemap-lastmod.sh |
a <url> in the built sitemap.xml with no <lastmod>, an empty one, or a value that is not a W3C datetime (a date alone is valid; prose is not). Run from check-notes.sh, so it reds every job that builds the site |
scripts/check-vpn-variants.sh |
a variant declared in _data/vpn_experiments.yml that is not a built page, that has a different set of section anchors than the control, that hardcodes a price or URL, or whose CTA has lost its ?e=&v= codes |
scripts/check-vpn-includes.sh |
a file under _includes/vpn/ that no page or layout includes — a factual section that drifted out of the /vpn variants and can now go stale with no rendered change to catch it. A bare name in a comment, or a tag inside {% comment %}...{% endcomment %}, is not a reference |
scripts/check-fragment-resolution.sh |
a #fragment that resolves to a selector instead of an element id |
scripts/check-indexnow.sh |
the IndexNow key contract: no key file, a second key file, a body that drifted from the key in its name, a key the build did not publish, robots.txt without its sitemap line, the key file offered as a page in sitemap.xml, or a workflow that commits a key and never submits it |
scripts/check-theme.sh |
a palette token that is declared but not wired, or a switch that no longer sets it |
scripts/check-contact-form-visible.sh |
the contact form missing from the built output, or an unclosed <!-- still leaving an opener behind after comments are stripped |
tools/check-vendor-hash.rb |
a vendored asset that no longer matches its recorded hash |
tools/check-rum-cookieless.mjs |
the RUM client ceasing to be first-party and cookieless |
scripts/check-snippets.sh |
a page in sitemap.xml whose rendered <title> is outside 30-60 characters or whose meta description is outside 70-158, two pages rendering the same title, or a sitemap entry with nothing built for it. It measures the built page, so the layout's ` |
tools/audit-report.rb |
published audit artifacts (signatures, hashes) that do not verify against _data/audit-pins.json, or a host's own signed report whose checks did not all pass — a failed audit fails this build rather than being published |
Copy experiments on /vpn
The VPN landing page exists in three copies, and the differences between them are the experiment:
| Variant | Page | What changed |
|---|---|---|
a (control) |
/vpn/ |
the plain-language read: what the tunnel does and does not do, then who runs it, the tiers and the price |
b |
/vpn/v2/ |
jurisdiction framing: a Montréal gateway and the one named operator, with the verification section hoisted above the tiers |
c |
/vpn/v3/ |
price and simplicity framing, with the price and tiers hoisted to the top |
The definition — variants, framing, hypothesis, metrics — is _data/vpn_experiments.yml,
and it is binding: scripts/check-vpn-variants.sh runs in all four CI jobs and fails
the build when a declared variant is not a real page, when its set of section anchors
differs from the control's, when a page hardcodes a price or URL, or when a CTA has lost
the ?e=<exp>&v=<code> pair that attributes a signup or a paid conversion to the copy
that was seen.
All the factual sections are shared includes (_includes/vpn/) — the variants differ
only in the hero copy, the order of the sections, and the CTA wording, so a measured
difference cannot be a difference in the facts. Assignment is campaign-level: each
variant is a live URL and the ad platform allocates traffic, so nobody is randomised and
no traffic is discarded.
The e / v codes are consumed by the portal (the private clientsv repo,
internal/api/attribution.go, var abExperiments); a code that is not in that map is
dropped on arrival, so an experiment change here needs that map updated in the same
change. Read-out is the vpn-ab-test Grafana dashboard in nix-config
(modules/monitoring/dashboards/, WP8, in review); until it is deployed the same
counts are queryable directly against VictoriaLogs.