@primer/doctocat-nextjs 0.0.0-20250620095814 → 0.0.0-20250620104108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -88,14 +88,16 @@ export function IndexCards({route, folderData}: IndexCardsProps) {
|
|
|
88
88
|
|
|
89
89
|
const thumbnailUrl =
|
|
90
90
|
colorMode === 'dark'
|
|
91
|
-
? item.frontMatter.thumbnail_darkMode ||
|
|
92
|
-
|
|
91
|
+
? `${basePath ? basePath : ''}${item.frontMatter.thumbnail_darkMode}` ||
|
|
92
|
+
getNextPlaceholderIndex(darkModePlaceholderThumbs).src
|
|
93
|
+
: `${basePath ? basePath : ''}${item.frontMatter.thumbnail}` ||
|
|
94
|
+
getNextPlaceholderIndex(lightModePlaceholderThumbs).src
|
|
93
95
|
|
|
94
96
|
return (
|
|
95
97
|
<Grid.Column span={{xsmall: 12, small: 12, medium: 12, large: 6, xlarge: 4}} key={item.frontMatter.title}>
|
|
96
98
|
<Link legacyBehavior passHref href={item.route}>
|
|
97
99
|
<Card href="#" hasBorder>
|
|
98
|
-
<Card.Image src={
|
|
100
|
+
<Card.Image src={thumbnailUrl} alt="" aspectRatio="4:3" />
|
|
99
101
|
<Card.Heading>{item.frontMatter.title}</Card.Heading>
|
|
100
102
|
{item.frontMatter.description && <Card.Description>{item.frontMatter.description}</Card.Description>}
|
|
101
103
|
</Card>
|