From 82b0c814db565bbe2c97b28518da999975c7dc2f Mon Sep 17 00:00:00 2001 From: Lisa-Ann B Date: Wed, 17 Dec 2025 09:52:41 -0500 Subject: [PATCH] Remove extension - #151 --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index a6c835a..567f5e4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -149,7 +149,7 @@ function createIndex(path, statsSync) { "mod": "${statsSync.trim()}", "tag": "${tag}", "tagId": "${h.getAttribute('id')}", - "path": "/${urlPath.replace('.md', '.html')}" + "path": "/${urlPath.replace(new RegExp(/(index\.(html|md)|\.(html|md))/), '')}" },` searchDict[title+urlPath] = true }