summaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
Diffstat (limited to '_posts')
-rw-r--r--_posts/processPosts.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/_posts/processPosts.js b/_posts/processPosts.js
index 55c97df..d4b2a2e 100644
--- a/_posts/processPosts.js
+++ b/_posts/processPosts.js
@@ -47,7 +47,7 @@ function createPostServableFile(post) {
const baseFilePath = path.join(__dirname, '..', post.url);
const stats = fs.statSync(baseFilePath);
const content = fs.readFileSync(baseFilePath);
- const fileName = post.url.substring(post.url.lastIndexOf('/'));
+ const fileName = post.url.substring(post.url.lastIndexOf('/') + 1);
const filePath = path.join(dir, fileName);
fs.writeFileSync(filePath,`
<!DOCTYPE html>