Skip to content

Commit 95a691b

Browse files
author
Taylor Griffith
committed
working and passing tests
1 parent 77b4d80 commit 95a691b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function getPosts () {
2222
// Create slug for URL //
2323
dataObj.data.slug = dataObj.data.title.toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g, '')
2424
// Parse image file name from path //
25-
// dataObj.data.thumbnail = dataObj.data.thumbnail.replace('/src/images/uploads/', '')
25+
dataObj.data.thumbnail = dataObj.data.thumbnail.replace('/public/uploads/', '')
2626
// Push object into items array //
2727
items.push(dataObj)
2828
}

0 commit comments

Comments
 (0)