From 4ace0392335bb19e9773a2ee3045213ab4975526 Mon Sep 17 00:00:00 2001 From: ctao Date: Sat, 25 Jul 2026 06:57:58 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20astro=20built-ins=20=E2=80=94=20news=20?= =?UTF-8?q?pagination,=20prefetch,=20RSS,=20OG/SEO=20meta,=20TOC=20scrolls?= =?UTF-8?q?py=20(Starlight-pattern)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DESIGN.md | 11 ++++- astro.config.mjs | 8 ++++ public/brand/og-card.jpg | Bin 0 -> 59054 bytes public/robots.txt | 5 +++ public/search-client.js | 16 ++++++- src/layouts/Base.astro | 19 ++++++++- src/pages/index.astro | 2 +- src/pages/news/[...page].astro | 76 +++++++++++++++++++++++++++++++++ src/pages/news/[slug].astro | 53 ++++++++++++++++++++++- src/pages/news/index.astro | 39 ----------------- src/pages/rss.xml.js | 43 +++++++++++++++++++ src/pages/sitemap.xml.js | 28 ++++++++++++ src/styles/global.css | 29 ++++++++++++- 13 files changed, 283 insertions(+), 46 deletions(-) create mode 100644 public/brand/og-card.jpg create mode 100644 public/robots.txt create mode 100644 src/pages/news/[...page].astro delete mode 100644 src/pages/news/index.astro create mode 100644 src/pages/rss.xml.js create mode 100644 src/pages/sitemap.xml.js diff --git a/DESIGN.md b/DESIGN.md index a1eb7a5..24cf2c3 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -78,7 +78,8 @@ ctao.org animates nebula videos under Galaxy vignettes; our translation: already is its ambient; news/article/utility pages stay calm (reading focus). Body text NEVER sits on a moving gradient — cards, panels and bands are solid layers above it. -3. One-shot hero `rise` stagger; hover lift/transitions. Nothing else. +3. One-shot hero `rise` stagger; hover lift/transitions, incl. the card-cover + micro-zoom (scale 1.03, clipped by the card — AstroWind pattern). Nothing else. Rules: - ALL `animation`/`transition` declarations live inside the single @@ -114,6 +115,14 @@ displayed): `
` collapsed under the title (< 1200px) and `