backend: # The two following lines need to be indented
  name: git-gateway # The authentication method we use for Netlify CMS
  branch: main # Branch to update when we push our content (it can be any branch in our repo)

# Do not indent these lines
media_folder: "public/images/uploads" # Exact path where we store the uploaded media
public_folder: "/images/uploads" # We do not need to specify the /public part as all the files from it are stored in the root directory after the build step

site_url: https://kilmeadan.com/
display_url: https://kilmeadan.com/
local_backend: true
slug: { { slug } } # The URL should be the name of the title of the post/document

collections:
  - label: posts # Label used in the UI for the collection
    label_singular: post # Label for singular post
    name: posts # Name of the collection used for various functionality in the CMS
    folder: /src/content/posts # Where each new post with .md should be saved
    create: true # Allows users to create new items in the collection
    fields:
      - { label: "Title", name: "title", widget: "string" } # Field Title
      - { label: "Body", name: "body", widget: "markdown" } 
      - { label: "Date of writing", name: "date", widget: "datetime" } # Field Date of writing      
      - { label: "Meta Description", name: "description", widget: "markdown" } # Field Description
      - { label: "Featured image", name: "image", widget: "image" } # Field Featured Image
      - { 
          label: "Category", 
          name: "categories", 
          widget: "select",  
          options: ["restaurant","things-to-do"],
          multiple: true
      } # Field Featured Image
      - { label: "Draft", name: "draft", widget: "boolean",  default: true} # Field Featured Image
