fix: display name for file nodes

This commit is contained in:
Ben Schlegel 2023-09-17 12:41:06 +02:00
parent e3306cc475
commit b8fbb64cad

View File

@ -160,7 +160,7 @@ export function ExplorerNode({ node, opts, fullPath, fileData }: ExplorerNodePro
// Single file node
<li key={node.file.slug}>
<a href={resolveRelative(fileData.slug!, node.file.slug!)} data-for={node.file.slug}>
{node.file.frontmatter?.title}
{node.name}
</a>
</li>
) : (