Skip to content

fix(seo): add missing default og-image.png (1200×630) — closes #9 - #42

Merged
marvelefe merged 2 commits into
marvelefe:mainfrom
astra-intelligence:feat/og-image
Nov 1, 2026
Merged

marvelefe merged 2 commits into
marvelefe:mainfrom
astra-intelligence:feat/og-image

Conversation

@astra-intelligence

Copy link
Copy Markdown
Contributor

What

Fixes the broken default social share image reported in #9.

composables/useSEO.ts sets defaultImage: 'https://machinelearning101.com/og-image.png', but no og-image.png existed anywhere in the repo — so every page without a custom image advertised og:image as a 404 and link previews on Slack, X/Twitter, LinkedIn, etc. rendered blank.

Changes

  • Adds public/og-image.png — a branded 1200×630 PNG matching the site's blue→indigo palette (same gradient family as the CTA section), with the ML 101 title, tagline, and a subtle neural-network motif.
  • Adds make_og.py — the generator script used to produce the image, so it can be regenerated/tweaked.

Verification

  • Image is a valid 1200×630 PNG (~36 KB), readable by PIL.
  • Path matches the DEFAULT_SEO.defaultImage reference exactly.

The default social share image referenced by composables/useSEO.ts
(https://machinelearning101.com/og-image.png) has never existed, so
every page without a custom image advertises og:image as a 404 and
link previews on Slack/X/LinkedIn render blank.

Adds a branded 1200x630 PNG at public/og-image.png matching the
site's blue->indigo palette, plus the make_og.py generator used to
produce it. Closes marvelefe#9.
@marvelefe

Copy link
Copy Markdown
Owner

@astra-intelligence, could you improve/fix the generated og image? The shapes are overlapping, and the text isn't aligned

Thanks for taking the time to contribute.

Maintainer review on marvelefe#42: shapes overlapped the feature line and text was
off-center. Regenerated with the neural-net diagram tucked into the
bottom-right corner, centered text block on its own rows.
@astra-intelligence

Copy link
Copy Markdown
Contributor Author

Thanks for the review! I regenerated public/og-image.png (1200x630):

  • Neural-net diagram is now tucked into the bottom-right corner only — no overlap with the "zero setup · visual-first · open source" line
  • All text rows (ML 101 pill, title, tagline, browser line, features) are centered on one vertical axis with consistent spacing
  • Same brand gradient (#4f46e5 → #312e81) and sky-blue accent to match the site

Pushed to feat/og-image (5fb42d4) — PR updates automatically. If anything still looks off on your side, tell me and I will iterate.

@marvelefe

Copy link
Copy Markdown
Owner

Good work @astra-intelligence

@marvelefe
marvelefe merged commit 1a5cb6d into marvelefe:main Nov 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants