backend:
  name: github
  repo: simplysecure/website-superbloom
  branch: main
  site_domain: dev-superbloom.netlify.app

site_url: https://superbloom.design

media_folder: 'assets/images'
public_folder: '/images'

publish_mode: editorial_workflow
show_preview_links: true

collections:
  - name: 'blog' # Used in routes, e.g., /admin/collections/blog
    label: 'Blog Posts' # Used in the UI
    label_singular: 'Blog Post'
    folder: 'content/learning/blog/' # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: '{{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: 'Description'
        name: 'description'
        widget: 'string'
        required: false
      - label: 'Publish Date'
        name: 'date'
        widget: 'datetime'
        dateFormat: 'YYYY-MM-DD'
        timeFormat: 'HH:mm'
        format: 'YYYY-MM-DD'
      - label: 'Authors'
        name: 'people'
        widget: 'relation'
        collection: 'people'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: true
      - label: 'Featured Image'
        name: 'image'
        widget: 'image'
        required: false
      - label: 'License'
        name: 'license'
        widget: 'string'
        required: false
      - label: 'Projects'
        name: 'projects'
        widget: 'relation'
        collection: 'projects'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Resources'
        name: 'resources'
        widget: 'relation'
        collection: 'resources'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Collections - Use Collections collection to create new collections.'
        name: 'collections'
        widget: 'relation'
        collection: 'collections'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Tags - Use Tags collection to create new tags.'
        name: 'tags'
        widget: 'relation'
        collection: 'tags'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Topics - Use Topics collection to create new Topics.'
        name: 'topics'
        widget: 'relation'
        collection: 'topics'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Events - Use Events collection to create new Events.'
        name: 'events'
        widget: 'relation'
        collection: 'events'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Formats - Use Formats collection to create new Formats.'
        name: 'format'
        widget: 'relation'
        collection: 'format'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - { label: 'Body', name: 'body', widget: 'markdown' }

  - name: 'events'
    label: 'Events'
    label_singular: 'Event'
    folder: 'content/community/events'
    create: true
    slug: '{{slug}}'
    preview_path: 'community/events/{{slug}}'
    fields:
      - label: 'Title'
        name: 'title'
        widget: 'string'
      - label: 'Description'
        name: 'description'
        widget: 'text'
        required: false
      - label: 'Date'
        name: 'date'
        widget: 'datetime'
        format: 'YYYY-MM-DD'
        required: false
      - label: 'Start Date'
        name: 'startdate'
        widget: 'datetime'
        format: 'YYYY-MM-DD'
        required: false
      - label: 'End Date'
        name: 'enddate'
        widget: 'datetime'
        format: 'YYYY-MM-DD'
        required: false
      - label: 'RSVP'
        name: 'rsvp'
        widget: 'string'
        required: false
      - label: 'Projects - Use Projects collection to create new projects.'
        name: 'projects'
        widget: 'relation'
        collection: 'projects'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Resources - Use Resources collection to create new resources.'
        name: 'resources'
        widget: 'relation'
        collection: 'resources'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Tags - Use Tags collection to create new tags.'
        name: 'tags'
        widget: 'relation'
        collection: 'tags'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Topics - Use Topics collection to create new Topics.'
        name: 'topics'
        widget: 'relation'
        collection: 'topics'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Formats - Use Formats collection to create new Formats.'
        name: 'format'
        widget: 'relation'
        collection: 'events'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: Body
        name: body
        widget: markdown
        required: false

  - name: 'format' # Used in routes, e.g., /admin/collections/topics
    label: 'Formats' # Used in the UI
    label_singular: 'Format'
    folder: 'content/formats/' # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: '{{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: 'Description',
          name: 'description',
          widget: 'text',
          required: false,
        }
      - {
          label: 'Published',
          name: 'isPublished',
          widget: 'boolean',
          default: 'true',
        }
      - { label: 'Image', name: 'image', widget: 'image', required: false }
      - {
          label: 'Body',
          name: 'body',
          widget: 'hidden',
          required: false,
          default: '',
        }
    view_groups:
      - label: Published
        field: isPublished

  - name: 'opportunities'
    label: 'Opportunities'
    label_singular: 'Opportunity'
    folder: 'content/community/opportunities'
    create: true
    slug: '{{slug}}'
    preview_path: 'community/oppotunities/{{slug}}'
    fields:
      - label: Title
        name: title
        widget: string
      - label: Description
        name: description
        widget: text
        required: false
      - label: Date
        name: date
        widget: datetime
        format: YYYY-MM-DD
        required: true
      - label: Deadline
        name: deadline
        widget: datetime
        format: YYYY-MM-DD
        required: false
      - label: Status
        name: status
        widget: select
        options:
          - open
          - closed
      - label: Department
        name: department
        widget: text
        required: false
      - label: Location
        name: location
        widget: text
        required: false
      - label: Type of contract
        name: job
        widget: text
        required: false
      - label: Body
        name: body
        widget: markdown

  - name: 'projects'
    label: 'Projects'
    label_singular: 'Project'
    folder: 'content/work/projects/'
    create: true
    slug: '{{slug}}'
    preview_path: 'work/projects/{{slug}}'
    fields:
      - label: Title
        name: title
        widget: string
      - name: 'slug'
        label: 'Slug'
        widget: 'string'
      - label: Description
        name: description
        widget: text
        required: false
      - label: 'Created Date'
        name: date
        widget: datetime
        format: YYYY-MM-DD
        required: false
      - label: Project Start Date
        name: startdate
        widget: datetime
        format: YYYY-MM-DD
        required: false
      - label: Project End Date
        name: enddate
        widget: datetime
        format: YYYY-MM-DD
        required: false
      - label: 'URL - links to project page.'
        name: project_url
        widget: string
        multiple: true
        required: false
      - label: 'Team'
        name: 'people'
        widget: 'relation'
        collection: 'people'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
      - label: Partners
        name: 'partners'
        widget: 'relation'
        collection: 'people'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Funders'
        name: funders
        widget: list
        required: false
      - label: 'Blogs - Use Blogs collection to create new blogs.'
        name: 'blogs'
        widget: 'relation'
        collection: 'blog'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Resources - Use Resources collection to create new resources.'
        name: 'resources'
        widget: 'relation'
        collection: 'resources'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Collections - Use Collections collection to create new collections.'
        name: 'collections'
        widget: 'relation'
        collection: 'collections'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Outputs - pdfs or links to external site.'
        name: output_url
        widget: string
        multiple: true
        required: false
      - label: 'Tags - Use Tags collection to create new tags.'
        name: 'tags'
        widget: 'relation'
        collection: 'tags'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Topics - Use Topics collection to create new Topics.'
        name: 'topics'
        widget: 'relation'
        collection: 'topics'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Events - Use Events collection to create new Events.'
        name: 'events'
        widget: 'relation'
        collection: 'events'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: Body
        name: body
        widget: markdown
        required: false

  - name: 'resources' # Used in routes, e.g., /admin/collections/external_resources
    label: 'Resources' # Used in the UI
    label_singular: 'Resource'
    folder: 'content/learning/resources/' # The path to the folder where the documents are stored
    preview_path: 'learning/resources/{{slug}}'
    create: true # Allow users to create new documents in this collection
    slug: '{{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: 'Description', name: 'description', widget: 'string' }
      - { label: 'Slug', name: 'slug', widget: 'string', 'required': false }
      - {
          label: 'Publish Date',
          name: 'date',
          widget: 'datetime',
          dateFormat: 'YYYY-MM-DD',
          timeFormat: 'HH:mm',
          format: 'YYYY-MM-DD',
        }
      - {
          label: 'Featured Image',
          name: 'image',
          widget: 'image',
          required: false
        }
      - label: 'Attachments'
        name: 'attachments'
        widget: 'file'
        required: false
      - label: 'Authors'
        name: 'people'
        widget: 'relation'
        collection: 'people'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'License'
        name: 'license'
        widget: 'string'
        required: false
      - label: 'Formats - Use Formats collection to create new Formats.'
        name: 'format'
        widget: 'relation'
        collection: 'format'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - { label: 'External URL', name: 'external_url', widget: 'string', required: false }
      - label: 'Projects - Use Projects collection to create new projects.'
        name: 'projects'
        widget: 'relation'
        collection: 'projects'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Collections - Use Collections collection to create new collections.'
        name: 'collections'
        widget: 'relation'
        collection: 'collections'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Tags - Use Tags collection to create new tags.'
        name: 'tags'
        widget: 'relation'
        collection: 'tags'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Topics - Use Topics collection to create new Topics.'
        name: 'topics'
        widget: 'relation'
        collection: 'topics'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Events - Use Events collection to create new Events.'
        name: 'events'
        widget: 'relation'
        collection: 'events'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - { label: 'Body', name: 'body', widget: 'markdown'}

  - name: 'collections' # Used in routes, e.g., /admin/collections/external_resources
    label: 'Collections' # Used in the UI
    label_singular: 'Collection'
    folder: 'content/learning/collections/' # The path to the folder where the documents are stored
    preview_path: 'learning/collections/{{slug}}'
    create: true # Allow users to create new documents in this collection
    slug: '{{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: 'Description',
          name: 'description',
          widget: 'string',
          required: false,
        }
      - {
          label: 'Publish Date',
          name: 'date',
          widget: 'datetime',
          dateFormat: 'YYYY-MM-DD',
          timeFormat: 'HH:mm',
          format: 'YYYY-MM-DD',
        }
      - {
          label: 'Featured Image',
          name: 'image',
          widget: 'image',
          required: false,
        }
      - {
          label: 'Layout',
          name: 'layout',
          widget: 'hidden',
          default: 'collections/single.html.html',
          required: false,
        }
      - label: 'Authors'
        name: 'people'
        widget: 'relation'
        required: false
        collection: 'people'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
      - label: 'Blogs'
        name: 'blogs'
        widget: 'relation'
        required: false
        collection: 'blogs'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
      - label: 'Tags - Use Tags collection to create new tags.'
        name: 'tags'
        widget: 'relation'
        collection: 'tags'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Topics - Use Topics collection to create new Topics.'
        name: 'topics'
        widget: 'relation'
        collection: 'topics'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - label: 'Formats - Use Formats collection to create new Formats.'
        name: 'format'
        widget: 'relation'
        collection: 'events'
        value_field: '{{slug}}'
        search_fields: ['{{slug}}', 'title']
        display_fields: ['title']
        multiple: true
        required: false
      - { label: 'Body', name: 'body', widget: 'markdown', required: false }

  - name: 'tags' # Used in routes, e.g., /admin/collections/tags
    label: 'Tags' # Used in the UI
    label_singular: 'Tag'
    folder: 'content/tags/' # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: '{{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: 'tag' }
      - { label: 'Title', name: 'title', widget: 'string' }
      - {
          label: 'Description',
          name: 'description',
          widget: 'text',
          required: false,
        }
      - {
          label: 'Published',
          name: 'isPublished',
          widget: 'boolean',
          default: 'true',
        }
      - { label: 'Image', name: 'image', widget: 'image', required: false }
      - {
          label: 'Body',
          name: 'body',
          widget: 'hidden',
          required: false,
          default: '',
        }
    view_groups:
      - label: Published
        field: isPublished

  - name: 'people'
    label: 'People'
    label_singular: 'person'
    folder: 'content/about/people/'
    preview_path: 'about/people/{{slug}}'
    create: true
    slug: '{{slug}}'
    fields:
      - { label: 'Name', name: 'title', widget: 'string' }
      - {
          label: 'Pronouns',
          name: 'pronouns',
          widget: 'string',
          required: false,
        }
      - {
          label: 'Job Title',
          name: 'jobtitle',
          widget: 'string',
          required: false,
        }
      - {
          label: 'Alumni Job Title',
          name: 'alumni_jobtitle',
          widget: 'string',
          required: false,
        }
      - { label: 'Cover', name: 'cover', widget: 'image', required: false }
      - { label: 'Photo', name: 'photo', widget: 'image', required: false }
      - {
          label: 'Personal URL, instead of Bio page',
          name: 'personal_url',
          widget: 'string',
          required: false,
        }
      - {
          label: 'Location',
          name: 'peoplelocation',
          widget: 'list',
          required: false,
        }
      - {
          label: 'Languages',
          name: 'peoplelanguages',
          widget: 'list',
          default: [English],
          required: false,
        }
      - {
          label: 'Coaching Link',
          name: 'coachinglink',
          widget: 'string',
          required: false,
        }
      - label: 'Contact - Use only the account name not the entire'
        name: 'peoplecontact'
        widget: 'object'
        summary: '{{fields.github}} {{fields.instagram}} {{fields.linkedin}} {{fields.twitter}}'
        collapsed: true
        fields:
          - label: Github
            name: github
            widget: string
            required: false
          - label: Instagram
            name: instagram
            widget: string
            required: false
          - label: LinkedIn
            name: linkedin
            widget: string
            required: false
          - label: X
            name: twitter
            widget: string
            required: false
      - {
          label: 'Coaching Areas',
          name: 'coachingareas',
          widget: 'list',
          required: false,
        }
      - label: PGP
        name: pgp
        widget: object
        summary: '{{fields.email}} {{fields.fingerprint}}'
        collapsed: true
        fields:
          - label: PGP Email
            name: email
            widget: string
            required: false
          - label: PGP Fingerprint
            name: fingerprint
            widget: string
            required: false
          - label: PGP Key
            name: key
            widget: text
            required: false
      - label: Underexposed Project
        name: underexposed
        widget: object
        summary: '{{fields.name}}'
        collapsed: true
        fields:
          - label: Underexposed Project Name
            name: name
            widget: string
            required: false
          - label: Underexposed Project Video URL
            name: video_url
            widget: string
            required: false
          - label: Underexposed Project Description
            name: description
            widget: markdown
            required: false
      - { label: 'Bio', name: 'body', widget: 'markdown', required: false }

  - name: 'topics' # Used in routes, e.g., /admin/collections/topics
    label: 'Topics' # Used in the UI
    label_singular: 'Topic'
    folder: 'content/topics/' # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: '{{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: 'Description',
          name: 'description',
          widget: 'text',
          required: false,
        }
      - {
          label: 'Published',
          name: 'isPublished',
          widget: 'boolean',
          default: 'true',
        }
      - { label: 'Image', name: 'image', widget: 'image', required: false }
      - {
          label: 'Body',
          name: 'body',
          widget: 'hidden',
          required: false,
          default: '',
        }
    view_groups:
      - label: Published
        field: isPublished

  - name: 'config'
    label: 'People Groups'
    files:
      - label: 'Groups for People section'
        name: groups
        file: 'data/people_groups.toml'
        fields:
          - label: Groups (Reorder to control display order)
            label_singular: group
            name: group
            widget: list
            summary: '{{fields.title}}'
            fields:
              - label: 'Title'
                name: 'title'
                widget: string
              - label: 'Id, use with Parent setting'
                name: 'id'
                widget: string
              - label: 'Parent tab, blank for a separate tab'
                name: 'parent_group'
                widget: string
                required: false
              - label: 'Members (Use People collection to add people)'
                label_singular: Member
                name: 'members'
                widget: 'list'
                summary: '{{fields.member}}'
                field:
                  label: 'Member'
                  name: 'member'
                  widget: 'relation'
                  collection: 'people'
                  value_field: '{{slug}}'
                  search_fields: ['{{slug}}', 'title']
                  display_fields: ['title', '- {{slug}}']
