Hello Everyone,
I am getting started with Netlify CMS and I am stuck on why my created post are not saving. I don’ see any documentation about he requirements about how collections are to be saved.
I am getting the error:
Failed to persist entry: API_ERROR: refs/heads/cms/Job Opening/test is not a valid ref name.
Here is my config.yml file:
- There is some stuff I can’t share, so i used xxxxx to mark it off instead.
backend:
name: git-gateway
branch: main # Branch to update (optional; defaults to master)
media_folder: public/img
public_folder: img
publish_mode: editorial_workflow
display_url: xxxxxx
logo_url: xxxxxxx
collections:
- name: “Job Opening”
label: “Openings”
folder: “content/_jobpostings”
identifier_field: name
create: true
fields:- { label: “Title”, name: “title”, widget: “string” }
- { label: “Position”, name: “position”, widget: “string” }
- { label: “Location”, name: “location”, widget: “string” }
- { label: “Date”, name: “date”, widget: “datetime” }
- { label: “Description”, name: “description”, widget: “markdown” }
- {
label: “Remote”,
name: “remote”,
widget: “select”,
options: [“yes”, “no”],
default: [“yes”],
}