link processing

This commit is contained in:
Jacky Zhao
2023-05-31 17:41:44 -04:00
parent 21c007e2fc
commit 3636c052eb
5 changed files with 13 additions and 15 deletions

View File

@ -12,7 +12,6 @@ export function slugify(s: string): string {
const slugParts: string = rawSlugSegments
.map((segment) => slugSegment(segment))
.join(path.posix.sep)
// .replace(/index$/, '')
.replace(/\/$/, '')
return path.normalize(slugParts) + sluggedAnchor
}