Skip to content

Commit f38d94c

Browse files
committed
patch the patches
1 parent e43d721 commit f38d94c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

js/copy-to-llm.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
}
2020

2121
let route = pathname;
22-
if (route.endsWith('/index')) {
23-
route = route.slice(0, -'/index'.length);
24-
}
2522

2623
route = route.replace(/^\/+/, '');
2724
if (!route) {
@@ -49,7 +46,7 @@
4946
.toLowerCase()
5047
.replace(/^-+|-+$/g, '');
5148

52-
return slug || 'index';
49+
return slug;
5350
}
5451

5552
function getPageSlug() {

0 commit comments

Comments
 (0)