The config.yml file could not be loaded or failed

Hi every one,
First of all i’m not a dev, and english is not my mother tongue.

When i try to access to Netlify-CMS
this message prompt on my broswer:
Captura de ecrã 2020-04-27, às 20.54.48

I try to figure it out by reading the Netlify-CMS and Netlify git-gateway
docs. My GitLab repository project is private. So i creat an access token. But can’t solve the issue.

This is how my config.yml look like (admin/config.yml):

name: git-gateway
branch: master # Branch to update (master by default)

media_folder: “static/images/blog” # Folder where user uploaded files should go
public_folder: “/images/blog”

collections: # A list of collections the CMS should be able to edit

  • name: “post” # Used in routes, ie.: /admin/collections/:slug/edit
    label: “Post” # Used in the UI, ie.: “New Post”
    folder: “blog” # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: “{{day}}-{{month}}-{{year}}-{{slug}}”
    fields: # The fields each document in this collection have
    • {label: “Title”, name: “title”, widget: “string”}
    • {label: “Image_caption”, name: “image_caption”, widget: “image”}
    • {label: “Description”, name: “description”, widget: “string”}
    • {label: “Featured_image”, name: “featured_image”, widget: “string”}
    • {label: “Date”, name: “date”, widget: “date”, default: “”}
    • {label: “Body”, name: “body”, widget: “markdown”}
    • {label: “Tags”, name: “tags”, widget: “list”}

Appreciate your help, thank you.

Hi @ferreiraf and welcome :smiley: Can you provide a link to your site? Which static site generator are you using? If you’re using Hugo can you try accessing your site both with a trailing / and without a trailing / (try both https://<site-domain>/admin and https://<site-domain>/admin/)

Hi erez :slight_smile:

I’m using 11ty as SSG and GitLab as repository

Is this the link you ask for?

Thanks for help.

The trailing suggestion don’t work. i try it allready.

Thanks @ferreiraf looks like you’re using a very old version of the CMS:

<script src="^0.3.4/dist/cms.js"></script>

Can you try:

<script src="^2.0.0/dist/netlify-cms.js"></script>
1 Like

Thank you so much !!


Thanks a lot, now I can work a little harder on Netilify-CMS


1 Like

Thanks @ferreiraf, I recommend starting with one of the templates here