How to change content of simple HTML page having H1 and div tag using Netlify CMS

Please let me know what should be there in config.yml file of Netlify CMS to implement one static HTML page with div and h1 tag

Editing html directly isn’t possible with Netlify CMS. It edits data which you can convert into html using a static site generator.

1 Like

Thanks for your reply means here Netlify CMS can be used with some particular static site generator template creator. We will not able to use it for simple site having html pages without any site generator right?
Config.yml file of CMS must have any json or md file which provides data?
Site generator which are mention in doc are only we can used or any other site generator are also there?

We will not able to use it for simple site having html pages without any site generator right?

More or less correct. Any mechanism that relies heavily on building pages from data will do.

Config.yml file of CMS must have any json or md file which provides data?

Or yaml and a few other option but yes

Site generator which are mention in doc are only we can used or any other site generator are also there

You can use Netlify CMS with pretty much any SSG, there are even some repos out there with create-react-app etc.

In Netlify CMS I am getting this error when I have integrate some basic static html pages with the CMS. Check the attachment and let me know what to do in this.

It looks like you’re missing the identity widget on your site. Also: have you seen this post?

Thanks for your reply.
I have tried the solution 1 but in that also I have getting this error which is attached with this.
Please let me know what to do to solve this.

Hi @nikhil21,

When do you get this error? I tried signing up and was able to get in without issues.

I got the error when I have sign up and then on verify email it redirects to this site and after that it gives this error.

Could you try using a different email? Just as I said, I was able to signup in one-go. You could probably even see me as a user in your users list.

Thank You for your reply.
I have tried with different gmail id - nikhil.n.jain.21@gmail.com in this it has shown logging successful but when I accessed the admin link it is giving this error as attached.


What to do in this?

You need to go to your Identity settings > scroll down > Enable Git Gateway.

Thank You for your reply.
The issue is solved as for backend I have given branch as master instead of main.
Now the admin is opening.
Now I have one file in my main site as index.html which I have attached the same
In admin I have created config.yml which I have attached the same.
In this I want to change the value of index.html for this tag using admin

<h1 name="indexh1">Index Page </h1>
<h3 name="indexdata">Testing Index Content</h3>

But when I change the value using admin it appends the data in file but not replace this tags

As said before: You cannot edit HTML directly with Netlify CMS.

1 Like

Ok so what approach should I do to edit the html page having div, h1 and other tag?

You’d have to use a Markdown (or JSON, YAML, etc.) parser that would convert the data from CMS to HTML.

CMS cannot edit HTML, but it can edit other formats like MD, JSON, YAML, etc. You need to add a build pipeline in which the content added by CMS would be parsed and converted to the HTML.

Thank You for your reply will check this and let you know if any query

How did you create the index.html in the first place?
YOU have to edit it. Netlify CMS does NOT do that for you.

He just wanted to add Netlify CMS to an existing site. It’s a question that’s asked a lot actually.

I’ve been browsing and seeing that quite often.

You guys got your hands full - lol.