Skip to content

fix: enable svg thumbnail support in Card and listing queries#7388

Merged
saurabhraghuvanshii merged 3 commits intolayer5io:masterfrom
rishiraj38:fix/missing-blog-thumbnails
Jan 31, 2026
Merged

fix: enable svg thumbnail support in Card and listing queries#7388
saurabhraghuvanshii merged 3 commits intolayer5io:masterfrom
rishiraj38:fix/missing-blog-thumbnails

Conversation

@rishiraj38
Copy link
Copy Markdown
Member

Description

This PR fixes #7387 resolves an issue where blog posts using SVG thumbnails (e.g., "The Mythical 10x Engineer") were displaying blank cards on the blog listing page.

Screenshot 2026-01-30 at 11 28 07 PM

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Rishi Raj <rishiraj438gt@gmail.com>
@github-actions github-actions bot added the area/blog New posts or new blog functionality label Jan 30, 2026
@rishiraj38
Copy link
Copy Markdown
Member Author

@saurabhraghuvanshii Please Review .

@l5io
Copy link
Copy Markdown
Member

l5io commented Jan 30, 2026

🚀 Preview for commit f053334 at: https://697cf4fcb364100077022b23--layer5.netlify.app

@saurabhraghuvanshii
Copy link
Copy Markdown
Member

Thanks @rishiraj38 lgtm!!

Comment thread src/pages/blog/index.js
Comment thread src/pages/blog/index.js Outdated
@rishiraj38
Copy link
Copy Markdown
Member Author

Is this good or should I convert the SVGs to PNG or WebP and fix the issue?

@saurabhraghuvanshii
Copy link
Copy Markdown
Member

It would be better to convert to webp

Signed-off-by: Rishi Raj <rishiraj438gt@gmail.com>
@rishiraj38
Copy link
Copy Markdown
Member Author

Having made the changes I think we should convert all SVGs to WebP or PNGs to avoid any future errors.

@rishiraj38
Copy link
Copy Markdown
Member Author

I’ll fix that in the next PR. Please let me know if there’s anything else needs fixing.

@l5io
Copy link
Copy Markdown
Member

l5io commented Jan 30, 2026

🚀 Preview for commit 28855b1 at: https://697d0718404c6541fc202452--layer5.netlify.app

@saurabhraghuvanshii
Copy link
Copy Markdown
Member

@rishiraj38 what about svgs images why didn't you remove them? Is they are missing?

@rishiraj38
Copy link
Copy Markdown
Member Author

@rishiraj38 what about svgs images why didn't you remove them? Is they are missing?

I kept them because some are still used inside the blog content itself (imported in the MDX). Deleting them would crash the build.

@l5io
Copy link
Copy Markdown
Member

l5io commented Jan 30, 2026

🚀 Preview for commit 773b5f8 at: https://697d0be598129d5678744d5a--layer5.netlify.app

@saurabhraghuvanshii
Copy link
Copy Markdown
Member

Thanks @rishiraj38 lgtm!!

@saurabhraghuvanshii saurabhraghuvanshii merged commit c6caf0a into layer5io:master Jan 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/blog New posts or new blog functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Blog page cards show missing images

3 participants