We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9db2b7 commit 081b916Copy full SHA for 081b916
src/project/types/website/listing/website-listing-read.ts
@@ -358,12 +358,13 @@ export function completeListingItems(
358
});
359
360
if (contents.previewImage) {
361
- const imagePath = isAbsolute(contents.previewImage.src)
+ const imgAbsPath = isAbsolute(contents.previewImage.src)
362
? contents.previewImage.src
363
- : join(dirname(docRelativePath), contents.previewImage.src);
+ : join(dirname(docAbsPath), contents.previewImage.src);
364
365
+ const imgRelPath = relative(dirname(outputFile.file), imgAbsPath);
366
const imgHtml = imageSrc(
- { ...contents.previewImage, src: imagePath },
367
+ { ...contents.previewImage, src: imgRelPath },
368
progressive,
369
imgHeight,
370
);
0 commit comments