This repository has been archived by the owner on Sep 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2b1bd4
commit 91f8009
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React, { Component } from "react"; | ||
import Helmet from "react-helmet"; | ||
|
||
class AdminPage extends Component { | ||
render() { | ||
return ( | ||
<div className="admin"> | ||
<Helmet> | ||
<meta charSet="utf-8" /> | ||
<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.4/dist/cms.css" | ||
/> | ||
<script src="https://unpkg.com/netlify-cms@~0.4/dist/cms.js" /> | ||
</Helmet> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default AdminPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
backend: | ||
name: github | ||
repo: kalinchernev/gatsby-jammin # Path to your Github repository | ||
branch: master # Branch to update (master by default) | ||
|
||
media_folder: "static/img" # Folder where user uploaded files should go | ||
|
||
collections: # A list of collections the CMS should be able to edit | ||
- name: "post" # Used in routes, ie.: /admin/collections/:slug/edit | ||
label: "Post" # Used in the UI, ie.: "New Post" | ||
folder: "content" # The path to the folder where the documents are stored | ||
sort: "date:desc" # Default is title:asc | ||
create: true # Allow users to create new documents in this collection | ||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" | ||
fields: # The fields each document in this collection have | ||
- {label: "Title", name: "title", widget: "string", tagname: "h1"} | ||
- {label: "Body", name: "body", widget: "markdown"} | ||
meta: # Meta data fields. Just like fields, but without any preview element | ||
- {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"} |