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

Open
#382 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Domain
documentation

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
C++
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ibra-kdbra/Math-Problems

All issues in ibra-kdbra/Math-Problems

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.