Skip to content

fix(theme): show the whole cover in post lists - #2

Merged
blueeon merged 1 commit into
mainfrom
fix/post-card-cover-crop
Dec 4, 2026
Merged

blueeon merged 1 commit into
mainfrom
fix/post-card-cover-crop

Conversation

@blueeon

@blueeon blueeon commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Problem

The wabi post card put covers in a 4:3 box on wide screens and cropped them from the center. Most covers are made as share images (2:1, 16:9 or 1200x630), so the left and right of the cover were cut off, often including the first letters of the title.

Changes

  • PostCard (wabi): the box uses the share-card ratio 1200/630 on all screen sizes. The cover is shown whole (object-contain); a blurred copy behind it fills any space left by covers of another ratio, so square or tall covers no longer get cropped either.
  • citepo check: new cover_aspect warning when a cover is outside 1.6:1 to 2.2:1, with a hint to use 1200x630 or set ogImage separately.
  • Skill reference: frontmatter.md recommends 1200x630 covers.

Verification

  • pnpm typecheck and pnpm test pass (189 tests, one new).
  • Built a three-language blog with 2:1 and 16:9 covers using this branch: the list pages render the new markup, the arbitrary aspect-[1200/630] class is in the CSS, and citepo check reports no cover warnings for those covers.

🤖 Generated with Claude Code

The wabi post card cropped covers to 4:3 on wide screens, cutting off
titles on 2:1 and 16:9 covers. The card now uses the 1200x630 share-card
ratio and shows the whole cover, with a blurred copy filling any space
left by covers of another ratio.

citepo check warns when a cover is far from that ratio, and the
frontmatter reference recommends 1200x630.
@blueeon
blueeon merged commit 9306ef5 into main Dec 4, 2026
1 check passed
@blueeon
blueeon deleted the fix/post-card-cover-crop branch December 4, 2026 11:49
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