Skip to content

Instantly share code, notes, and snippets.

@DirtyF
Last active May 29, 2017 19:28
Show Gist options
  • Save DirtyF/efa029c00cccf7c45300d5f10b0afd7c to your computer and use it in GitHub Desktop.
Save DirtyF/efa029c00cccf7c45300d5f10b0afd7c to your computer and use it in GitHub Desktop.
Netlify CMS admin files
backend:
name: github
repo: jamstatic/jamstatic-fr
branch: master
publish_mode: editorial_workflow
media_folder: "assets/images"
collections:
- name: "Articles"
label: "Articles"
folder: "_posts"
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields: # The fields for each document, usually in front matter
- {label: "Titre", name: "title", widget: "string"}
- {label: "Description", name: "description", widget: "string"}
- {label: "Auteur", name: "author", widget: "string"}
- {label: "Twitter Card", name: "image", widget: "image"}
- {label: "Texte", name: "body", widget: "markdown"}
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Netlify CMS</title>
<link rel="stylesheet" href="https://unpkg.com/netlify-cms@latest/dist/cms.css" />
</head>
<body>
<script src="https://unpkg.com/netlify-cms@latest/dist/cms.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment