[Docs] Generate per-page Open Graph images and fix twitter:card without og:image

Aperta
#382 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
documentation

Direzione di ricerca

Start with docs/astro.config.mjs lines 16–60 and identify the layout that renders the page head. Check how the content collection exposes titles, stages, categories and project thumbnails, then review Astro’s endpoint and image generation options. Done means every built page has an existing 1200×630 PNG referenced by og:image, with matching alt text and Twitter image metadata, and the images use brand tokens.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: docs-site good first issue priority: P3 size: S type: enhancement

Summary

Pages declare twitter:card=summary_large_image but provide no og:image, so shares render without a preview.

Location

  • docs/astro.config.mjs:16-60

Evidence

dist/index.html: <meta name="twitter:card" content="summary_large_image"/>
grep -c 'og:image' dist/index.html -> 0

Expected

Every page has a 1200x630 OG image showing title, stage/category and a project thumbnail, generated at build time.

Proposed fix

Add an /og/[...slug].png endpoint using satori + @resvg/resvg-js (or astro-og-canvas) fed by the content collection; set og:image, og:image:alt, twitter:image in the layout head; cache results in CI.

Acceptance criteria

  • Every built page has og:image pointing to an existing PNG
  • Images respect brand tokens

Repository audit, November 2026 · Phase 7 · Docs platform · evidence: reproduced · ref platform-032


Generated by Claude Code

Lingua principale
C++
Stelle
2
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ibra-kdbra/Math-Problems

Tutte le issue di ibra-kdbra/Math-Problems

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.