fix: display name for file nodes

This commit is contained in:
Ben Schlegel 2023-09-17 12:41:06 +02:00
parent f7029012df
commit 9358f73f1c
No known key found for this signature in database
GPG key ID: 8BDB8891C1575E22

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>
) : (