From b177e87a981892958b4b9275414cfcf0c6f97f5a Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 18 Mar 2023 13:09:33 -0400 Subject: [PATCH] initial add of static cms (desktop ui) and /admin/index.html --- static/admin/desktop/config.yml | 18 ++++++++++++++++++ static/admin/desktop/index.html | 16 ++++++++++++++++ static/admin/index.html | 13 +++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 static/admin/desktop/config.yml create mode 100644 static/admin/desktop/index.html create mode 100644 static/admin/index.html diff --git a/static/admin/desktop/config.yml b/static/admin/desktop/config.yml new file mode 100644 index 0000000..7333a48 --- /dev/null +++ b/static/admin/desktop/config.yml @@ -0,0 +1,18 @@ +media_folder: "static/uploads" +public_folder: "/uploads" +backend: + name: git-gateway + branch: main +collections: + - name: "blog" # Used in routes, e.g., /admin/collections/blog + label: "Blog" # Used in the UI + folder: "_posts/blog" # The path to the folder where the documents are stored + create: true # Allow users to create new documents in this collection + slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md + fields: # The fields for each document, usually in front matter + - {label: "Layout", name: "layout", widget: "hidden", default: "blog"} + - {label: "Title", name: "title", widget: "string"} + - {label: "Publish Date", name: "date", widget: "datetime"} + - {label: "Featured Image", name: "thumbnail", widget: "image"} + - {label: "Rating (scale of 1-5)", name: "rating", widget: "number"} + - {label: "Body", name: "body", widget: "markdown"} diff --git a/static/admin/desktop/index.html b/static/admin/desktop/index.html new file mode 100644 index 0000000..60c55b5 --- /dev/null +++ b/static/admin/desktop/index.html @@ -0,0 +1,16 @@ + + + + + + + Content Manager + + + + + + + diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..516e40c --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,13 @@ + + + + + + + Content Manager + + +

Mobile Admin UI

+

Desktop Admin UI

+ +