From dae24ce44608f8a2017cca2a9d3b5f75ede903ff Mon Sep 17 00:00:00 2001 From: KellyMichels Date: Wed, 16 Sep 2026 17:27:53 -0500 Subject: [PATCH] feat(site): link preview for zscripts.evomedia.net, with a card in the page's own colours The page had a title and a description and nothing else, so pasting the link anywhere rendered a bare URL. - the full og:* block with absolute URLs, plus twitter:card and a canonical the og:url agrees with - site/og-card.png, 1200x630, in the page's own dark palette so the preview and the page look like the same thing. Composed by make_og_card.py in the private tooling repo; it lives in site/ because that directory is what reaches the server. - tests/LinkPreview.Tests.ps1 The last test is the one that earned its place. The first draft of the card showed `ztests`, which is not a command in this repo - so the test extracts the z-commands named in og:image:alt and fails unless each one is a real .ps1 or .cmd at the root. A card is public copy, and public copy must not advertise a script that does not exist. CHECKSUMS.txt is untouched: the manifest covers top-level executables only, and nothing here is one. Tested: 6 new tests, verified to fail when the card advertises ztests again. Full suite 292 passed, 1 skipped. Closes #90 Co-Authored-By: Claude Opus 5 --- site/index.html | 20 ++++++++ site/og-card.png | Bin 0 -> 25778 bytes tests/LinkPreview.Tests.ps1 | 90 ++++++++++++++++++++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 site/og-card.png create mode 100644 tests/LinkPreview.Tests.ps1 diff --git a/site/index.html b/site/index.html index 993220c..8d59309 100644 --- a/site/index.html +++ b/site/index.html @@ -5,6 +5,26 @@ zscripts — one-word dev commands + + + + + + + + + + + + + + + + + +