@primer/doctocat-nextjs 0.0.0-20250620095921 → 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
@@ -1,12 +1,12 @@
1
1
  # @primer/doctocat-nextjs
2
2
 
3
- ## 0.0.0-20250620095921
3
+ ## 0.0.0-20250620104108
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Fake entry to force publishing
8
8
 
9
- ## 0.0.0-20250620095919
9
+ ## 0.0.0-20250620104106
10
10
 
11
11
  ### Patch Changes
12
12
 
@@ -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 || getNextPlaceholderIndex(darkModePlaceholderThumbs).src
92
- : item.frontMatter.thumbnail || getNextPlaceholderIndex(lightModePlaceholderThumbs).src
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={`${basePath ? basePath : ''}${thumbnailUrl}`} alt="" aspectRatio="4:3" />
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/doctocat-nextjs",
3
- "version": "0.0.0-20250620095921",
3
+ "version": "0.0.0-20250620104108",
4
4
  "description": "A Next.js theme for building Primer documentation sites",
5
5
  "main": "index.js",
6
6
  "type": "module",