aboutsummaryrefslogtreecommitdiffstats
path: root/site/static/admin
diff options
context:
space:
mode:
Diffstat (limited to 'site/static/admin')
-rw-r--r--site/static/admin/config.yml26
-rw-r--r--site/static/admin/index.html19
2 files changed, 45 insertions, 0 deletions
diff --git a/site/static/admin/config.yml b/site/static/admin/config.yml
new file mode 100644
index 0000000..657ec6d
--- /dev/null
+++ b/site/static/admin/config.yml
@@ -0,0 +1,26 @@
+backend:
+ name: github
+ repo: owner/repo # Path to your Github repository
+ branch: master # Branch to update (master by default)
+
+media_folder: "img/uploads" # 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: "post" # The path to the folder where the documents are stored
+ create: true # Allow users to create new documents in this collection
+ fields: # The fields each document in this collection have
+ - {label: "Title", name: "title", widget: "string", tagname: "h1"}
+ - {label: "Body", name: "body", widget: "markdown"}
+ - {label: "Publish Date", name: "date", widget: "datetime"}
+ # - name: "settings"
+ # label: "Settings"
+ # files:
+ # - name: "general"
+ # label: "General settings"
+ # file: "_settings/general.json"
+ # fields:
+ # - {label: "Main site title", name: "site_title", widget: "string"}
+ # - {label: "Number of fronpage posts", name: "post_count", widget: "number"}
+ # - {label: "Site cover image", name: "cover", widget: "image"}
diff --git a/site/static/admin/index.html b/site/static/admin/index.html
new file mode 100644
index 0000000..69d8a76
--- /dev/null
+++ b/site/static/admin/index.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<html>
+
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+
+ <title>Content Manager</title>
+ <!-- Include the stylesheets from your site here -->
+ <link rel="stylesheet" href="https://unpkg.com/netlify-cms@^0.1/dist/cms.css" />
+ <!-- Include a CMS specific stylesheet here -->
+
+ </head>
+
+ <body>
+ <script src="https://unpkg.com/netlify-cms@^0.1/dist/cms.js"></script>
+ </body>
+
+</html>