Update admin

This commit is contained in:
Eric Jinks 2017-10-13 10:18:11 +10:00
parent 9db5d41346
commit 837c4c0fd1
2 changed files with 17 additions and 1 deletions

View file

@ -1,6 +1,21 @@
backend:
name: git-gateway
branch: master # Branch to update (optional; defaults to master)
branch: netlify-cms # Branch to update (optional; defaults to master)
media_folder: "public/images/uploads" # Media files will be stored in the repo under static/images/uploads
public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads
collections: # A list of collections the CMS should be able to edit
- name: "pages"
label: "Pages"
files:
- file: "content/pages/home.md"
label: "Home Page"
name: "home-page"
fields:
- {label: Title, name: title, widget: string}
- file: "content/pages/about.json"
label: "About Page"
name: "about-page"
fields:
- {label: Title, name: title, widget: string}

View file

@ -12,5 +12,6 @@
<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="https://unpkg.com/netlify-cms@^0.5.0/dist/cms.js"></script>
<script src="https://identity-js.netlify.com/v1/netlify-identity-widget.js"></script>
</body>
</html>