Feature/docs (#67)

This commit is contained in:
Daniel Lautzenheiser
2022-11-04 17:41:12 -04:00
committed by GitHub
parent 7a1ec55a5c
commit 81ca566b5e
152 changed files with 1862 additions and 3832 deletions

View File

@ -155,7 +155,7 @@ Paste HTML for Static CMS into your `public/admin/index.html` file (check out th
</head>
<body>
<!-- Include the script that builds the page and powers Static CMS -->
<script src="https://unpkg.com/@staticcms/core@%5E0.1.0/dist/static-cms-core.js"></script>
<script src="https://unpkg.com/@staticcms/core@%5E1.0.0/dist/static-cms-core.js"></script>
</body>
</html>
```
@ -166,27 +166,27 @@ Paste the following configuration into your `public/admin/config.yml` file:
```yaml
backend:
title: git-gateway
name: git-gateway
branch: main # Branch to update (optional; defaults to main)
media_folder: public/img
public_folder: img
collections:
- title: "pages"
- name: "pages"
label: "Pages"
files:
- label: "Home"
title: "home"
name: "home"
file: "content/home.md"
fields:
- { label: "Title", title: "title", widget: "string"}
- { label: "Publish Date", title: "date", widget: "datetime" }
- { label: "Body", title: "body", widget: "markdown"}
- { label: "Title", name: "title", widget: "string"}
- { label: "Publish Date", name: "date", widget: "datetime" }
- { label: "Body", name: "body", widget: "markdown"}
- label: 'Cats'
title: "cats"
name: "cats"
widget: list
fields:
- { label: "Name", title: "name", widget: "string"}
- { label: "Description", title: "description", widget: "text"}
- { label: "Name", name: "name", widget: "string"}
- { label: "Description", name: "description", widget: "text"}
```
Awesome! Static CMS should now be available at `localhost:3000/admin/index.html`. Unfortunately we can't edit our content just yet. First we need to move our code into a git repository, and create a new Netlify site.