WebsiteApp/admin/config.yml
2021-04-01 22:34:55 +02:00

58 lines
2.5 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Everything you need to know about configuring the CMS can be found here:-
# https://www.netlifycms.org/docs/configuration-options/
backend:
name: git-gateway # Netlifys Git Gateway connects to Git providers API
repo: BlueWallet/Website
branch: master # Branch to update (master by default)
media_folder: "assets/img/uploads" # Folder where user uploaded files should go
publish_mode: editorial_workflow # Enable drafts
collections: # A list of collections the CMS should be able to edit
# POSTS
- name: "post" # Used in routes, ie.: /admin/collections/:slug/edit
label: "Post" # Used in the UI, ie.: "New Post"
folder: "_posts" # The path to the folder where the documents are stored
sort: "date:desc" # Default is title:asc
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields: # The fields each document in this collection have
- {label: "Layout", name: "layout", widget: "hidden", default: "post"}
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
- {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD HH:mm:ss"}
- {label: "Intro Paragraph", name: "intro_paragraph", widget: "markdown", required: false}
- {label: "Body", name: "body", widget: "markdown", required: false}
- {label: "Categories", name: "categories", widget: "string", required: false}
# DOCS
- name: "docs"
label: "Docs"
folder: "_docs"
sort: "title:asc"
create: true
slug: "{{slug}}"
fields:
- {label: "Layout", name: "layout", widget: "hidden", default: "page"}
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
- {label: "Permalink", name: "permalink", widget: "hidden"}
- {label: "Section", name: "section", widget: "hidden", default: "{{name}}"}
- {label: "Body", name: "body", widget: "markdown", required: false}
# PAGES
- name: "page"
label: "Page"
folder: "/"
sort: "title:asc"
create: false
slug: "{{slug}}"
fields:
- {label: "Layout", name: "layout", widget: "hidden", default: "page"}
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
- {label: "Permalink", name: "permalink", widget: "hidden"}
- {label: "Section", name: "section", widget: "hidden", default: "{{name}}"}
- {label: "Intro Paragraph", name: "intro_paragraph", widget: "markdown", required: false}
- {label: "Body", name: "body", widget: "markdown", required: false}