mirror of
https://github.com/kingomarnajjar/gatsby-starter-netlify-cms.git
synced 2026-07-31 02:56:42 +10:00
added date
This commit is contained in:
parent
3ad20a198c
commit
f663323ea8
3 changed files with 3 additions and 15 deletions
13
README.md
13
README.md
|
|
@ -3,17 +3,4 @@
|
|||
This project is hosted on Netlify: https://gatsby-netlify-cms.netlify.com/
|
||||
|
||||
## Adding Netlify CMS to Gatsby Project
|
||||
- Go to the admin directory
|
||||
```
|
||||
$ cd static/admin/config.yml
|
||||
```
|
||||
- Edit Line 3
|
||||
```
|
||||
repo: [YOUR_USERNAME]/[YOUR_REPO] # Path to your Github repository
|
||||
```
|
||||
- Follow these instructions ([Netlify CMS Quick Start Guide](https://www.netlifycms.org/docs/quick-start/)) for a custom setup.
|
||||
|
||||
## To Dos
|
||||
- [ ] Register a custom widget to save frontmatter data values as strings
|
||||
- [ ] Netlify authentication
|
||||
- [ ] Images
|
||||
|
|
|
|||
|
|
@ -14,4 +14,5 @@ collections:
|
|||
- {label: "Layout", name: "layout", widget: "hidden", default: "blog"}
|
||||
- {label: "Path", name: "path", widget: "string"}
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
- {label: "Publish Date", name: "date", widget: "datetime"}
|
||||
- {label: "Body", name: "body", widget: "markdown"}
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Content Manager</title>
|
||||
|
||||
<link rel="stylesheet" href="https://unpkg.com/netlify-cms@0.5.1/dist/cms.css" />
|
||||
<link rel="stylesheet" href="https://unpkg.com/netlify-cms@^0.5.0/dist/cms.css" />
|
||||
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script src="https://unpkg.com/netlify-cms@0.5.1/dist/cms.js"></script>
|
||||
<script src="https://unpkg.com/netlify-cms@^0.5.0/dist/cms.js"></script>
|
||||
<script>
|
||||
if (window.netlifyIdentity) {
|
||||
window.netlifyIdentity.on('init', user => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue