fix(regression): set default home page as "." (closes #1702)

Update home path to "." to resolve joinSegments correctly.
This commit is contained in:
Aaron Pham 2025-01-03 21:48:16 -08:00 committed by GitHub
parent c98ef7e89f
commit eef13b9484
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,7 +65,7 @@ export default ((opts?: Partial<BreadcrumbOptions>) => {
}
// Format entry for root element
const firstEntry = formatCrumb(options.rootName, fileData.slug!, "/" as SimpleSlug)
const firstEntry = formatCrumb(options.rootName, fileData.slug!, "." as SimpleSlug)
const crumbs: CrumbData[] = [firstEntry]
if (!folderIndex && options.resolveFrontmatterTitle) {