We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbb6f6e commit ad2045fCopy full SHA for ad2045f
packages/astro-theme/lib/nav.ts
@@ -235,7 +235,8 @@ export function idToTitle(id: string): string {
235
236
// Strip extension
237
const dotIndex = filename.lastIndexOf(".");
238
- if (dotIndex !== -1) {
+ const supportedExt = [".md", ".mdx"]; //to include dir names with dots
239
+ if (dotIndex !== -1 && supportedExt.includes(filename.slice(dotIndex, -1))) {
240
filename = filename.slice(0, dotIndex);
241
}
242
0 commit comments