From e31617c1ca45027249b9105015f8fe61ab23ebc9 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 11 Jul 2020 13:45:14 +0200 Subject: [PATCH] upd --- static/admin/config.yml | 19 +++++++++++++++++++ static/admin/index.html | 12 ++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 static/admin/config.yml create mode 100644 static/admin/index.html diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..8fdcdff --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,19 @@ +backend: + name: github + repo: eesev9ie/gcg-website + branch: master + site_domain: eesev9ie.netlify.app + +media_folder: "static/images" + +collections: + - name: "blog" # Used in routes, e.g., /admin/collections/blog + label: "Blog" # Used in the UI + folder: "_posts/" # 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: "Title", name: "title", widget: "string"} + - {label: "Publish Date", name: "date", widget: "datetime"} + - {label: "Tags", name: "tags", widget: "list"} + - {label: "Body", name: "body", widget: "markdown"} diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..7216e32 --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,12 @@ + + + + + + Content Manager + + + + + +