Skip to content

fix(articles): fall back to hero image on cards - #194

Merged
andrianllmm merged 2 commits into
pagbutlakupv:mainfrom
andrianllmm:fix/article-card-hero-image
Oct 17, 2026
Merged

andrianllmm merged 2 commits into
pagbutlakupv:mainfrom
andrianllmm:fix/article-card-hero-image

Conversation

@andrianllmm

@andrianllmm andrianllmm commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Closes #193

Summary

Article cards only used meta.image, so articles with a hero image but no SEO image showed no thumbnail.

  • Add getCardImage (meta.image || heroImage) and use it in ArticleCard, ArticleFeaturedCard, ArticleCompactCard
  • Select heroImage in card queries
  • Fall back to heroImage for the search index meta image (existing articles update on next save)

Test Plan

  • pnpm lint: no errors
  • pnpm test:int: 159/159 passed
  • /, /articles, /news, /search render locally

Checklist

  • Self-reviewed my changes
  • Tested locally
  • Documentation updated (if applicable)

@andrianllmm andrianllmm added the bug Something isn't working label Oct 17, 2026
@andrianllmm andrianllmm self-assigned this Oct 17, 2026
@vercel

vercel Bot commented Oct 17, 2026

Copy link
Copy Markdown

@andrianllmm is attempting to deploy a commit to the Pagbutlak Devs Team on Vercel.

A member of the Team first needs to authorize it.

@llamapreview llamapreview Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LlamaPReview — Conditional code-review clear

Read bounded PR-head context from src/plugins/index.ts.

Exact-head CI remains unresolved (1 failed); no CI-dependent merge-safety claim is made.

Review details and evidence

LlamaPReview checks

  • Read bounded PR-head context from src/plugins/index.ts.
  • Inspected matching PR-head repository snippets in src/search/beforeSync.ts, src/plugins/index.ts.

Still coding alone? Open CarbonChat, a chat room right inside Codex.

@Romyr05 Romyr05 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@andrianllmm
andrianllmm merged commit b993014 into pagbutlakupv:main Oct 17, 2026
3 of 4 checks passed
@andrianllmm
andrianllmm deleted the fix/article-card-hero-image branch October 17, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Article cards ignore hero image when meta image is empty

2 participants