-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown provider: Pass path & file info #139
Comments
Ok, I've noticed we don't actually support a nested directory structure, so I will add that in. [ed: now done] From my last commit, I've added some additional values to the "attributes": {
"date": "2016-05-10T00:00:00.000Z",
"title": "Test folder reader",
"author": "The DADI Team",
"_loc": "workspace/posts/folder/filename.md",
"_ext": ".md",
"_id": "filename",
"_path": [
"workspace",
"posts",
"folder"
]
} I noticed if you added a non-text file into the file directory, it caused an error (e.g., an image). I've added support for an {
"datasource": {
"key": "posts",
"name": "Blog posts as markdown files.",
"source": {
"type": "markdown",
"path": "./workspace/posts",
"extension": "txt"
}
} |
Would be handy to pass info about the file to the JSON for use in the front end. For example,
path
andfilename
./posts/setup/testing.md
The text was updated successfully, but these errors were encountered: