aboutsummaryrefslogtreecommitdiff
path: root/static/admin/config.yml
blob: 7749a76f7e04608b6ac6336e1f570b1878caaa72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This is the main configuration file for Netlify CMS.
# Netlify CMS is used as the admin panel for cState.
#
# While some settings here can be kept as is, you may
# want to change some for a more customized solution.
#
# You can look at what each option does and how to
# toggle between them on the Netlify CMS repo docs:
#
# https://github.com/netlify/netlify-cms/blob/master/docs/quick-start.md

backend:
  name: git-gateway
media_folder: "static/img"
public_folder: "/img"
  # Do not change this!
  collections:
    # Used in routes, e.g., /admin/collections/blog
  - name: "issue"
    # Used in the UI
    label: "Issues"
    # The path to the folder where the documents are stored
    folder: "content/issues"
    # Allow users to create new documents in this collection
    create: true
    # Filename template, e.g., YYYY-MM-DD-title.md
    slug: "{{slug}}.md"
    # The fields for each document, usually in front matter
    fields:
      - {label: "Section", name: "Section", widget: "hidden", default: "issue"}

      - {label: "What is this issue about?", name: "Title", widget: "string"}
      - {label: "When did this issue begin?", name: "Date", widget: "datetime"}

      - {label: "Has it now been fully resolved?", name: "Resolved", widget: "boolean"}
      - {label: "When did downtime end (if it did)?", name: "ResolvedWhen", widget: "date"}

      - {label: "What is the severity?", name: "Severity", widget: "string", options: ['disrupted', 'down', 'notice']}
      - {label: "What is affected? Example: ['API', 'Media Proxy']", name: "Affected", widget: "string"}
      - {label: "Write any relevant notes here.", name: "body", widget: "markdown"}