diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..4c0e354 --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,21 @@ +backend: + name: github + repo: michalvankodev/michalvankodev + branch: master # Branch to update (optional; defaults to master) + +media_folder: "static/images/uploads" # Media files will be stored in the repo under images/uploads +public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads + +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" } \ No newline at end of file diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..aaed95a --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,12 @@ + + +
+ + +