diff --git a/docs/design-guide.md b/docs/design-guide.md index 749d533..b8abb7f 100644 --- a/docs/design-guide.md +++ b/docs/design-guide.md @@ -22,7 +22,7 @@ Read this **before** touching theme, layout, typography, color, or SEO markup. P - **Sticky header** — name/logo + nav (Blog / Categories / About / RSS). - **Article header** — title, pub date, reading time, category + tags, author card (photo, 1–2 line bio, LinkedIn + GitHub + git.hoelee.com links). - **Author box / ProfilePage schema** on every post (see SEO below). -- **Related posts** (6 photo cards: 3 across on desktop, 2 across ≤900px, the first 4 only on ≤600px) — internal linking + keeps readers on-site. Each card shows the post's own language-specific share card, so an EN page never shows ZH art. +- **Related posts** (6 photo cards: 2 across on desktop, 1 across on phones with only the first 4 shown) — internal linking + keeps readers on-site. Each card shows the post's own language-specific share card, so an EN page never shows ZH art. - **RSS link** in footer — how the technical audience follows me. - **Custom og:image per post** — 1200×630, never the reused logo. diff --git a/docs/project-state.md b/docs/project-state.md index 161354a..59d649b 100644 --- a/docs/project-state.md +++ b/docs/project-state.md @@ -254,7 +254,7 @@ No topics were killed by the user in this sweep. ### Phase G — Related-posts photo grid (2026-10-20) - ✅ `Related Posts` / `相关文章` went from 4 text-only cards to **6 cards carrying each post's own share card**: `ogImage` per post means the EN page shows `/og/.jpg` and the ZH page `/og/zh-.jpg` — no cross-language art. Measured in the built HTML: 6 ``, all 6 files 200, ZH page resolves all 6 to `zh-` files. -- Layout: 3 across (>900px), 2 across (≤900px), and on ≤600px the same 2 columns show only the **first 4** (`.related-extra` hidden, `i >= 4` in `[...slug].astro`). Read-time span (`.related-read`) is dropped on phones so the date fits a 160px card. +- Layout: **2 across on desktop**, **1 across on phones** (≤600px), where only the **first 4** cards are shown (`.related-extra` hidden, `i >= 4` in `[...slug].astro`). The 3-across version was tried first and reverted same day — two-up at 1200px keeps the baked-in OG type readable. - Verified with headless Chrome by injecting the built `