
backend:
  name: github
  repo: ghellings/storygamesla.com 
  branch: main
  commit_messages:
    create: Create {{collection}} “{{slug}}”
    update: Update {{collection}} “{{slug}}”
    delete: Delete {{collection}} “{{slug}}”
    uploadMedia: Upload “{{path}}”
    deleteMedia: Delete “{{path}}”
    openAuthoring: '{{message}}'

publish_mode: editorial_workflow
media_folder: "src/assets/images"
public_folder: "/images/uploads"
site_url: "https://storygamesla.com"
display_url: "https://storygamesla.com"

media_library:
  name: cloudinary
  config:
    cloud_name: storygamesla
    api_key: 387918349724174

collections:
  - name: "pages"
    label: "Pages"
    folder: "src/pages"
    create: true
    slug: "{{slug}}"
    fields:
      - { label: "Title", name: "title", widget: "string" }
      - { label: "Body", name: "body", widget: "markdown" }
  - name: "events"
    label: "Events"
    folder: "src/pages/events"
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    fields:
      - { label: "Title", name: "title", widget: "string" }
      - { label: "Date", name: "date", widget: "datetime" }
      - { label: "Location", name: "location", widget: "string" }
      - { label: "Body", name: "body", widget: "markdown" }
  - name: "games"
    label: "Games"
    folder: "src/pages/games"
    create: true
    slug: "{{slug}}"
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "games.njk" }
      - { label: "Title", name: "title", widget: "string" }
      - { label: "Url", name: "url", widget: "string" }
      - { label: "Authors", name: "gameauthors", widget: "list" }
      - { label: "Body", name: "body", widget: "markdown" }
      - { label: "Image", name: "image", widget: "image" }
      - { label: "Tags", name: "tags", widget: "list", default: [ "game" ] }
      - { label: "Permalink", name: "permalink", widget: "string", default: "/games/CHANGME" }
  - label: "Data"
    name: "data"
    files:
      - name: "members"
        label: "members"
        file: "src/data/members.json"
        fields:
          - { name: "people", widget: list, fields: [
              { name: "person",  widget: "object", fields: [
                { label: "Name", name: "name", widget: "string" },
                { label: "Bio", name: "bio", widget: "markdown" },
                { label: "Teams", name: "teams", widget: "list" },
                { label: "Pronouns", name: "pronouns", widet: "list" }
              ] }
            ] }      
      - name: "groups"
        label: "groups" 
        file: "src/data/groups.json"
        fields:
          - { name: "teams", widget: list, fields: [
              { name: "team", widget: "object", fields: [
                { label: "Name", name: "name", widget: "string" },
                { label: "Description", name: "description", widget: "markdown" }
              ] }
            ] }
      - name: "authors"
        label: "authors" 
        file: "src/data/authors.json"
        fields:
          - { name: "authors", widget: list, fields: [
              { name: "author", widget: "object", fields: [
                { label: "Name", name: "name", widget: "string" },
                { label: "Bio", name: "bio", widget: "markdown" }
              ] }
            ] }      
  