Skip to content

Commit

Permalink
Update example config for netlify-cms
Browse files Browse the repository at this point in the history
Added the public_folder attribute to make the assets accessible.

Also added the body field to the collection, so the html attribute of markdownRemark gets filled properly. Figuring out that the field has to be named "body" was a bit cumbersome.

https://www.netlifycms.org/docs/configuration-options/#fields
  • Loading branch information
janrop authored May 13, 2018
1 parent ce7a86e commit b93f5b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/netlify-cms.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ backend:
name: test-repo

media_folder: static/assets
public_folder: assets

collections:
- name: blog
Expand All @@ -73,6 +74,7 @@ collections:
- { name: path, label: Path }
- { name: date, label: Date, widget: date }
- { name: title, label: Title }
- { name: body, label: Body, widget: markdown }
```
Then in your terminal run `gatsby develop` to start the Gatsby development server. Once the server
Expand Down

0 comments on commit b93f5b7

Please sign in to comment.