kabirgh
2024-01-15 8eec47c340d48d9b45970a88da0aaff4e216a7e2
quartz/components/Breadcrumbs.tsx
@@ -18,15 +18,15 @@
   */
  rootName: string
  /**
   * wether to look up frontmatter title for folders (could cause performance problems with big vaults)
   * Whether to look up frontmatter title for folders (could cause performance problems with big vaults)
   */
  resolveFrontmatterTitle: boolean
  /**
   * Wether to display breadcrumbs on root `index.md`
   * Whether to display breadcrumbs on root `index.md`
   */
  hideOnRoot: boolean
  /**
   * Wether to display the current page in the breadcrumbs.
   * Whether to display the current page in the breadcrumbs.
   */
  showCurrentPage: boolean
}
@@ -104,7 +104,7 @@
      }
      // Add current file to crumb (can directly use frontmatter title)
      if (options.showCurrentPage) {
      if (options.showCurrentPage && slugParts.at(-1) === "") {
        crumbs.push({
          displayName: fileData.frontmatter!.title,
          path: "",