From dbe60fb1e957550d6a02ee91eb23e3595341b242 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Mon, 22 Jun 2026 14:46:39 +0800 Subject: [PATCH] cleanup: remove dead code + fix stale font references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three items: 1. Dead CSS removed: .specimen-home pageClass rule in style.css (set background-color which body already has globally) and the pageClass: specimen-home in index.md frontmatter. 2. Stale font reference fixed: the first specimen's cssFamily still pointed at 'Fraunces' (the original display font, replaced by Newsreader then Spectral). Now correctly references 'Spectral'. Also updated the footer colophon 'Set in Fraunces' → 'Set in Spectral'. 3. Verified: zero Fraunces references remain, zero specimen-home references remain, build passes, 8/8 tests pass, subsite guard passes. --- .vitepress/components/HomePage.vue | 4 ++-- .vitepress/theme/style.css | 7 ------- index.md | 1 - 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.vitepress/components/HomePage.vue b/.vitepress/components/HomePage.vue index 32f29b4..186c93e 100644 --- a/.vitepress/components/HomePage.vue +++ b/.vitepress/components/HomePage.vue @@ -17,7 +17,7 @@ const openSourceCount = formulaData.openSourceCount; const specimens = [ { name: "Spectral", - cssFamily: "'Fraunces', Georgia, serif", + cssFamily: "'Spectral', Georgia, serif", install: 'fontist install "Spectral"', note: "Display serif · variable opsz", }, @@ -257,7 +257,7 @@ onUnmounted(() => { if (typeTimer) clearTimeout(typeTimer); }); diff --git a/.vitepress/theme/style.css b/.vitepress/theme/style.css index 6721a1c..3ee7f3f 100644 --- a/.vitepress/theme/style.css +++ b/.vitepress/theme/style.css @@ -426,13 +426,6 @@ html.dark .vp-doc [class*="language-"] { font-size: 13px; } -/* ── Homepage palette (pageClass: specimen-home) ──────────────── */ -/* Specimen tokens are now global (above); the pageClass remains on - index.md for any homepage-only tweaks, but inherits the system. */ -.specimen-home { - background-color: var(--spec-paper); -} - /* ── 404 page — specimen ───────────────────────────────────────── */ .NotFound { text-align: center; diff --git a/index.md b/index.md index a85370e..b9fe2ed 100644 --- a/index.md +++ b/index.md @@ -2,7 +2,6 @@ layout: page title: Fontist - Cross-Platform Font Management description: Install, manage, and build fonts programmatically across Windows, Linux, and macOS. Designed for automated systems and digital publishing. -pageClass: specimen-home ---