import CMS from 'netlify-cms'
// Now the registry is available via the CMS object.
Not sure where that should go.
This is my first time trying to add Netlify CMS to my Gatsby site. I’m not very well versed in Gatsby/React either but I’m just sort of experimenting to see if I can hack this together. Any help with how I can fix this would be appreciated.
Edit: Looks like I didn’t add the second widget tag…
Create confirmation, recovery, invitation, and email-change HTML files in my admin folder. Then copy and paste the code from here into their respective files.
Then in Netlify, add the file paths relative to my domain to **Settings > Identity > Emails **.
…and so on for the rest of the files.
The only step I’m not 100% clear on is " You will have to tell you SSG not to add a layout to these templates (there shouldn’t be any <html> , <head> or <body> tags for these pages)." I assumed this is as simple as omitting these tags and leaving the copied code untouched.
Now, I’m testing it by running gatsby develop and viewing the /admin page locally. Here’s what I see:
Some static site generators will automatically apply a layout to any html file they come across. If that’s the case, you’ll probably have to tell it to ignore the identity files.
Would you be able to point out something I am maybe doing wrong?
It looks like you removed the identity widget not only on the root of your site, but also at the /admin/ path. You’ll need it there, since you’re sending your email links to the admin page with the email templates.