diff options
Diffstat (limited to 'static/admin')
| -rw-r--r-- | static/admin/config.yml | 21 | ||||
| -rw-r--r-- | static/admin/index.html | 12 |
2 files changed, 33 insertions, 0 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..97288f2 --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,21 @@ +backend: + name: git-gateway + branch: master # Branch to update (optional; defaults to master) + + media_folder: assets/img/ + public_folder: /img + + collections: + - name: 'blog' + label: 'Blog' + format: 'md' + folder: 'assets/content/blog' + create: true + slug: '{{year}}-{{month}}-{{day}}-{{slug}}' + editor: + preview: false + fields: + - { label: 'Title', name: 'title', widget: 'string' } + - { label: 'Publish Date', name: 'date', widget: 'datetime' } + - { label: 'Description', name: 'description', widget: 'string' } + - { label: 'Body', name: 'body', widget: 'markdown' }
\ No newline at end of file diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..78757e4 --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,12 @@ +<!doctype html> +<html> +<head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>Content Manager</title> +</head> +<body> +<!-- Include the script that builds the page and powers Netlify CMS --> +<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script> +</body> +</html>
\ No newline at end of file |
