@primer/doctocat-nextjs 0.5.3-rc.ff130d9 → 0.5.3

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.
@@ -88,9 +88,10 @@ export function IndexCards({route, folderData}: IndexCardsProps) {
88
88
 
89
89
  const thumbnailUrl =
90
90
  colorMode === 'dark'
91
- ? `${basePath ? basePath : ''}${item.frontMatter.thumbnail_darkMode}` ||
92
- getNextPlaceholderIndex(darkModePlaceholderThumbs).src
93
- : `${basePath ? basePath : ''}${item.frontMatter.thumbnail}` ||
91
+ ? (item.frontMatter.thumbnail_darkMode
92
+ ? `${basePath || ''}${item.frontMatter.thumbnail_darkMode}`
93
+ : null) || getNextPlaceholderIndex(darkModePlaceholderThumbs).src
94
+ : (item.frontMatter.thumbnail ? `${basePath || ''}${item.frontMatter.thumbnail}` : null) ||
94
95
  getNextPlaceholderIndex(lightModePlaceholderThumbs).src
95
96
 
96
97
  return (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/doctocat-nextjs",
3
- "version": "0.5.3-rc.ff130d9",
3
+ "version": "0.5.3",
4
4
  "description": "A Next.js theme for building Primer documentation sites",
5
5
  "main": "index.js",
6
6
  "type": "module",