From 85398a58e0d4c765ad47f51d362eb9e56cea3a73 Mon Sep 17 00:00:00 2001 From: Damjan Savic Date: Sun, 25 Jan 2026 06:28:28 +0100 Subject: [PATCH] auto-claude: subtask-2-1 - Remove base64 SVG placeholder constant --- src/app/[locale]/blog/page.tsx | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/app/[locale]/blog/page.tsx b/src/app/[locale]/blog/page.tsx index 1b33fbc..168bb3a 100644 --- a/src/app/[locale]/blog/page.tsx +++ b/src/app/[locale]/blog/page.tsx @@ -328,17 +328,6 @@ function getImagePath(coverImage: string) { return coverImage.replace('/blog/', '/images/posts/'); } -// Placeholder image for posts without cover images -const PLACEHOLDER_IMAGE = 'data:image/svg+xml,' + encodeURIComponent(` - - - - - - - -`); - // Known existing images (from public/images/posts/) const EXISTING_IMAGES = new Set([ '/images/posts/erp-integration-breuninger/cover.jpg', @@ -347,18 +336,15 @@ const EXISTING_IMAGES = new Set([ '/images/posts/automated-ad-creatives/cover.jpg', ]); -// Blog image component with fallback -function BlogImage({ src, alt, fallback }: { src: string; alt: string; fallback: string }) { - const imageSrc = EXISTING_IMAGES.has(src) ? src : fallback; - +// Blog image component +function BlogImage({ src, alt }: { src: string; alt: string }) { return ( {alt} ); } @@ -380,7 +366,6 @@ function BlogPostCard({ post, locale }: { post: BlogPost; locale: string }) {