From 4825552c9d4b9d5b032e98b4a3addfb9867dec40 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Fri, 19 Jan 2024 04:58:37 -0800 Subject: [PATCH] bug fix --- package.json | 2 +- src/utils/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index aaf7b58b..d30e73f9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@matthiesenxyz/astro-ghostcms", "description": "Astro GhostCMS integration to allow easier importing of GhostCMS Content", - "version": "2.0.8", + "version": "2.0.9", "author": "MatthiesenXYZ (https://matthiesen.xyz)", "type": "module", "license": "MIT", diff --git a/src/utils/index.ts b/src/utils/index.ts index 145b2801..9c5909f2 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -10,9 +10,9 @@ export const getGhostImgPath = ( const relativePath = imgUrl.substring(`${baseUrl}/content/images`.length); const cleanedBaseUrl = baseUrl.replace(/\/~/, ""); if (width && width > 0) { - return `${cleanedBaseUrl}/content/images/size/w${width}/${relativePath}`; + return `${cleanedBaseUrl}content/images/size/w${width}/${relativePath}`; } - return `${cleanedBaseUrl}/content/images/${width}${relativePath}`; + return `${cleanedBaseUrl}content/images/${width}${relativePath}`; }; export const truncate = (input: string, size: number): string =>