Hi all,
I can’t seem to get Netlify CMS to work with Statiq. When I point my browser to https://valticus.cf/admin/ , I get:
Config Errors:
Error: Failed to load config.yml (404)
Check your config.yml file.
I have the config file in both input/admin and output/admin folders, the required snippets are configured to be injected via Netlify Script Inject.
The config.yml file:
backend:
name: git-gateway
branch: master # Branch to update (optional; defaults to master)
media_folder: "input/images/uploads" # Media files will be stored in the repo under input/assets/Images
public_folder: "/images/uploads" # public_folder indicates where they can be found in the published site. This path is used in image src attributes and is relative to the file where its called. https://www.netlifycms.org/docs/add-to-your-site/
collections:
- name: "blog" # Used in routes, e.g., /admin/collections/blog
label: "Blog" # Used in the UI
folder: "input/posts" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- { label: "Title", name: "Title", widget: "string" }
- {
label: "Lead",
name: "Lead",
widget: "string",
optional: true,
required: false,
}
- { label: "Published", name: "Published", widget: "datetime" }
- {
label: "Featured Image",
name: "Image",
widget: "image",
optional: true,
required: false,
pattern:
[
'^\S*$',
"Please rename your image remove any spaces from the filename",
],
}
- label: Tags
name: Tags
widget: list
- { label: "Body", name: "body", widget: "markdown" }
If anyone has integrated Netlify CMS into Statiq.Web, please help. Thank you!