Skip to content

Commit e6e625e

Browse files
authored
Merge pull request #152 from sennetconsortium/libpitt/151-remove-ext
Remove extension - #151
2 parents 875b173 + 82b0c81 commit e6e625e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function createIndex(path, statsSync) {
149149
"mod": "${statsSync.trim()}",
150150
"tag": "${tag}",
151151
"tagId": "${h.getAttribute('id')}",
152-
"path": "/${urlPath.replace('.md', '.html')}"
152+
"path": "/${urlPath.replace(new RegExp(/(index\.(html|md)|\.(html|md))/), '')}"
153153
},`
154154
searchDict[title+urlPath] = true
155155
}

0 commit comments

Comments
 (0)