aboutsummaryrefslogtreecommitdiff
path: root/static/admin
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-04-29 10:57:21 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-04-29 10:57:21 -0400
commit37522c3ce749f6582c47e892c935297220e926dc (patch)
treed3e509449cd95fd99ad60ec08c1614f1a8145327 /static/admin
parent893f5e94ce199d4ad2a976805b06d0e95fa45888 (diff)
downloadpersonal-website-37522c3ce749f6582c47e892c935297220e926dc.tar.gz
personal-website-37522c3ce749f6582c47e892c935297220e926dc.tar.bz2
personal-website-37522c3ce749f6582c47e892c935297220e926dc.zip
Dark theme, migrated blog posts and Netlify stuff
Diffstat (limited to 'static/admin')
-rw-r--r--static/admin/config.yml21
-rw-r--r--static/admin/index.html12
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