Skip to content

Commit 5885529

Browse files
committed
Fix right side panel thumbnail
1 parent 266d121 commit 5885529

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/StarlightRightSidebar.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ if (driverIdParts.length === 4) {
6464
}
6565
}
6666
67-
// Use the thumbnail from the content directory (co-located with markdown)
67+
// Use the thumbnail from the public directory
6868
const thumbnailFilePath = path.resolve(
6969
contentDirPath,
7070
`${driverSlug}.webp`,
7171
);
7272
if (existsSync(thumbnailFilePath)) {
73-
thumbnailPath = `/src/content/docs/${driverCategorySlug}/${driverManufacturerSlug}/${driverSlug}/${driverSlug}.webp`;
73+
thumbnailPath = `/images/drivers/${driverManufacturerSlug}/${driverSlug}.webp`;
7474
}
7575
}
7676
} catch (e) {

0 commit comments

Comments
 (0)