Changelog bb21c9d
fix(changelog): make per-commit meta descriptions unique
The SEO audit fails when more than three pages share a description, and same-day single-file commits (three Archived-sources runs and a research note) all rendered as '26 October 2026: 1 file of code, design or docs'. Append the commit short hash to each changelog page description so every page carries a distinct snippet. Verified: build renders and npm run seo:audit reports no problems found.
1 file of code, design or docs +1 −1 lines
Code, design and documents 1 file
src/pages/changelog/[hash].astro +1 −1
@@ -49,5 +49,5 @@ const moves = g.places.filter((p) => p.scores?.length || (p.status === "added" & .sort((a, b) => Math.abs((b.to ?? 0) - (b.from ?? 0)) - Math.abs((a.to ?? 0) - (a.from ?? 0))); --- -<Base noindex={c.short === "uncommitted"} title={`${c.subject} · Changelog`} description={`${formatDate(c.date.slice(0, 10))}: ${summary.map(([n, w]) => `${n} ${w}`).join(", ") || "changes to the site"}.`}> +<Base noindex={c.short === "uncommitted"} title={`${c.subject} · Changelog`} description={`${formatDate(c.date.slice(0, 10))}: ${summary.map(([n, w]) => `${n} ${w}`).join(", ") || "changes to the site"} (${c.short}).`}> <main class="changes-page gl gl-commit"> <section class="hero hero-sm">