bug fix
This commit is contained in:
parent
dd0f36b84e
commit
4825552c9d
|
@ -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",
|
||||
|
|
|
@ -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 =>
|
||||
|
|
Loading…
Reference in New Issue