We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 266d121 commit 5885529Copy full SHA for 5885529
src/components/StarlightRightSidebar.astro
@@ -64,13 +64,13 @@ if (driverIdParts.length === 4) {
64
}
65
66
67
- // Use the thumbnail from the content directory (co-located with markdown)
+ // Use the thumbnail from the public directory
68
const thumbnailFilePath = path.resolve(
69
contentDirPath,
70
`${driverSlug}.webp`,
71
);
72
if (existsSync(thumbnailFilePath)) {
73
- thumbnailPath = `/src/content/docs/${driverCategorySlug}/${driverManufacturerSlug}/${driverSlug}/${driverSlug}.webp`;
+ thumbnailPath = `/images/drivers/${driverManufacturerSlug}/${driverSlug}.webp`;
74
75
76
} catch (e) {
0 commit comments