--- // Which commit this build came from, in margin space: one short id, and // nothing else. The site has no live personal data server to read a real // record feed from (see plan/site.md on the origin problem this build sits // on top of), and `git log` is the one real stream a static build has — but // a commit *subject* is prose written for a reviewer, not for the marketing // origin, so only the id ships. If git is unavailable for any reason (no // `.git`, no `git` binary) this renders nothing — never a fabricated // substitute. import { execSync } from "node:child_process"; function readCommit(): string { try { const repoRoot = new URL("../../..", import.meta.url); return execSync("git rev-parse --short HEAD", { cwd: repoRoot, encoding: "utf8", }).trim(); } catch { return ""; } } const commit = readCommit(); --- {commit && (
{commit}