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 =>