From acf642d7e6590dbd15afbc5fe124f70f4fc84b97 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sun, 1 Mar 2026 22:39:51 +0100 Subject: [PATCH] fix(blog): prioritize original img url over small card size for sharp headers chore(release): bump version to 2.2.9 --- lib/blog.ts | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/blog.ts b/lib/blog.ts index 3d4f15a0..7ff0f011 100644 --- a/lib/blog.ts +++ b/lib/blog.ts @@ -116,7 +116,7 @@ export async function getPostBySlug(slug: string, locale: string): Promise { category: doc.category || '', featuredImage: typeof doc.featuredImage === 'object' && doc.featuredImage !== null - ? doc.featuredImage.sizes?.card?.url || doc.featuredImage.url + ? doc.featuredImage.url || doc.featuredImage.sizes?.card?.url : null, focalX: typeof doc.featuredImage === 'object' && doc.featuredImage !== null diff --git a/package.json b/package.json index 587c7700..be8a2079 100644 --- a/package.json +++ b/package.json @@ -139,7 +139,7 @@ "prepare": "husky", "preinstall": "npx only-allow pnpm" }, - "version": "2.2.8", + "version": "2.2.9", "pnpm": { "onlyBuiltDependencies": [ "@parcel/watcher",