Skip to content

fix(site): clamp CoverImage srcset, uncrop sponsor logos, and remove PodMatch - #783

Merged
codercatdev merged 1 commit into
devfrom
fix/cover-images-and-remove-podmatch
Oct 23, 2026
Merged

codercatdev merged 1 commit into
devfrom
fix/cover-images-and-remove-podmatch

Conversation

@codercatdev

Copy link
Copy Markdown
Contributor

Summary

  • CoverImage (CoverImage.astro): Parses intrinsic asset dimensions from _ref, clamps maxWidth and srcset descriptors so they never exceed the source asset's native resolution, and only chains .height() for 1:1 square avatars (preventing forced ?rect=... cropping on non-square covers and sponsor banners while honoring explicit Sanity Studio crops).
  • Sponsor detail page (sponsor/[slug].astro): Replaces the 256×256 square crop with proportional 640×360 / object-contain presentation and ogCardImageUrl so 16:9 horizontal sponsor banners and square logos render without clipping.
  • Remove PodMatch: Deletes PodmatchBadge.astro and removes all PodMatch badges, links, copy, and HTML-to-Markdown stripping rules across index.astro, podcast/[slug].astro, book.astro, contact.astro, privacy.astro, and html-to-markdown.ts.

@github-actions

Copy link
Copy Markdown

⚡ Cloudflare Worker Preview Ready!

Environment URL
PR Preview https://7bdfb75c-codingcatdev-dev.codingcatdev.workers.dev
Dev Custom Domain https://dev.codingcat.dev
  • Worker Version ID: 7bdfb75c-71e2-48ff-923f-cdda925a8034
  • Protection: Restricted to @codingcat.dev accounts via Cloudflare Zero Trust Access

@codercatdev
codercatdev merged commit 287b601 into dev Oct 23, 2026
2 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.

1 participant