Skip to content

Commit

Permalink
fix: reshuffle markdown array #139
Browse files Browse the repository at this point in the history
  • Loading branch information
David Longworth committed Mar 31, 2017
1 parent 730f418 commit 200bce3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions dadi/lib/providers/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,11 @@ MarkdownProvider.prototype.parseRawDataAsync = function parseRawDataAsync (data,
const parsedPath = path.parse(data[i]._name)

// Some info about the file
const meta = {
location: data[i]._name,
extension: parsedPath.ext,
handle: parsedPath.name
}
attributes._loc = data[i]._name,
attributes._ext = parsedPath.ext,
attributes._id = parsedPath.name

posts.push({
meta,
attributes,
original: data[i]._contents,
contentText,
Expand Down
2 changes: 1 addition & 1 deletion workspace/datasources/posts.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"requestParams": [
{
"param": "handle", "field": "handle"
"param": "handle", "field": "_id"
}
]
}
Expand Down

0 comments on commit 200bce3

Please sign in to comment.