One thing threw me so sharing in case it helps @triptych
and others:
Netlify CMS will use the title field as the slug and this will cause a JSON error as Sapper will look for a markdown file with the wrong name.
Add identifier_field: "slug" to the config.yml under collections:
collections:-name:"blog"# Used in routes, e.g., /admin/collections/bloglabel:"Blog"# Used in the UIfolder:"static/posts"# The path to the folder where our blog posts are storedidentifier_field:"slug"# Tells Netlify to use the slug field as the slug (and file name) value
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great post!
One thing threw me so sharing in case it helps @triptych and others:
Netlify CMS will use the
title
field as theslug
and this will cause aJSON
error as Sapper will look for a markdown file with the wrong name.Add
identifier_field: "slug"
to theconfig.yml
undercollections: