From 777f148e08ffe46111b711dd2f2cd37c76587a74 Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Tue, 26 Jan 2021 13:52:31 -0800 Subject: [PATCH] adds slug to listing --- src/routes/blog/index.json.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/blog/index.json.js b/src/routes/blog/index.json.js index d530f7b..37c0657 100644 --- a/src/routes/blog/index.json.js +++ b/src/routes/blog/index.json.js @@ -17,6 +17,7 @@ function getAllPosts(filesPath) { // Builds data return { ...data, + slug: fileName.substring(0, fileName.length - 3), html, }; });