If you want to have your local CMS write to a local repository, try the local_backend setting, currently in beta. It also means that content saved using the admin UI will save directly to the hosted repository, even if you're running the UI locally or in staging. This means that content fetched in the admin UI will match the content in the repository, which may be different from your locally running site. Note: no matter where you access Netlify CMS - whether running locally, in a staging environment, or in your published site - it will always fetch and commit files in your hosted repository (for example, on GitHub), on the branch you configured in your Netlify CMS config.yml file. Full details and code samples can be found in Backends. The backend option specifies how to access the content for your site, including authentication. Note that YAML syntax allows lists and objects to be written in block or inline style, and the code samples below include a mix of both. You can find details about all configuration options below. (No login required: click the login button and the CMS will open.) You can refer to the demo configuration code to see how each option was configured. To see working configuration examples, you can start from a template or check out the CMS demo site.
0 Comments
Leave a Reply. |