## Comment out when doing local development
backend:
  name: github
  repo: NCDgov/ncd-site
  base_url: https://pages.cloud.gov
  auth_endpoint: external/auth/github
  preview_context: pages/build
  branch: main

##
## Uncomment when doing local development on Decap CMS
## Run `npx decap-server` to start working locally
## In another terminal, start the app with `npm start`
## See https://decapcms.org/docs/working-with-a-local-git-repository/
##

# backend:
#   name: git-gateway
# local_backend: true

##
##
media_folder: assets/uploads/
public_folder: /uploads/
publish_mode: editorial_workflow
logo_url: https://www.ncd.gov/assets/images/ncd-logo.png
slug:
  encoding: "ascii"
  clean_accents: true
  sanitize_replacement: "-"

collections:
  - label: Accountability
    name: accountability
    folder: _accountability/
    create: true
    slug: "{{title}}"
    path: "{{slug}}"
    summary: "*{{title}}* ... ({{date}})"
    sortable_fields:
      - date
      - title
      - policy_areas
    editor:
      preview: true
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Title", name: "title", widget: "string" }
      - {
          label: "Publish Date",
          name: "date",
          widget: "datetime",
          format: "MMMM D, YYYY",
          date_format: "MMMM D, YYYY",
          time_format: false,
        }
      - &video {
          label: "Video URL",
          name: "video_url",
          hint: "Enter a video's URL. Accepts Youtube and URLs ending with `.mp4` and `.webm`.",
          widget: "string",
          required: false,
        }
      - &videocaptions {
          label: "Video Caption Track File (VTT File Format)",
          name: "video_caption_track",
          hint: "Upload the video's caption track files. Only accepts `.vtt` format",
          widget: "file",
          required: false,
          allow_multiple: false,
          media_folder: "/assets/uploads/video-captions/{{collection_name}}/{{slug}}",
        }
      - &redirectfrom {
          label: "Redirect from",
          name: "redirect_from",
          description: "An old URL path you want to redirect to this page.",
          widget: "list",
          required: false,
          default: [],
          field:
            {
              label: "Redirect Path",
              name: "redirect_from",
              widget: "string",
              hint: "/my/other/path",
            },
        }
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Adhoc Pages
    name: adhoc-pages
    description: These are pages that are not apart of a data collection that
    folder: pages
    create: true
    slug: "{{title}}"
    path: "{{slug}}"
    editor:
      preview: true
    fields:
      - {
          label: "Layout",
          name: "layout",
          widget: "hidden",
          default: "single-page",
        }
      - {
          label: "Published",
          name: "published",
          description: "Set to true to publish or false to un-publish a page.",
          widget: "boolean",
          default: false,
        }
      - {
          label: "Permalink",
          name: "permalink",
          description: "The URL path for the page.",
          widget: string,
          hint: "/the-page-name/",
        }
      - { label: "Title", name: "title", widget: "string" }
      - &press-release {
          label: "Press Release",
          name: "press_release",
          widget: "string",
          required: false,
          hint: "Enter the URL or relative path for the related press release or news post.",
        }
      - *video
      - *videocaptions
      - *redirectfrom
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Committees & Communities
    name: committees-communities
    folder: _committees-communities/
    create: true
    slug: "{{name}}"
    path: "{{slug}}"
    editor:
      preview: true
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Name", name: "name", widget: "string" }
      - { label: "Excerpt", name: "excerpt", required: false, widget: "text" }
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Congressional Budget Justification Reports
    name: budget_reports
    folder: _budget-reports/
    create: true
    slug: "budget-report-{{slug}}"
    path: "{{slug}}"
    editor:
      preview: true
    fields:
      - label: "Layout"
        name: "layout"
        widget: "hidden"
        default: "post"
      - label: "Title"
        name: "title"
        widget: "string"
      - label: "Report Year"
        name: "report_year"
        widget: "number"
        value_type: "int"
        min: 1980
        max: 2030
        step: 1
      - label: "Report Files"
        name: report_files
        widget: list
        field:
          label: "Report File"
          name: "{{slug}}"
          widget: "file"
          required: false
          allow_multiple: false
          media_folder: "/assets/uploads/budget-reports/"
      - *redirectfrom
  - label: Buy American Act Reports
    name: buy_american
    folder: _buy-american/
    create: true
    slug: "buy-american-{{slug}}"
    path: "{{slug}}"
    editor:
      preview: true
    fields:
      - label: "Layout"
        name: "layout"
        widget: "hidden"
        default: "post"
      - label: "Title"
        name: "title"
        widget: "string"
      - label: "Report Year"
        name: "report_year"
        widget: "number"
        value_type: "int"
        min: 1980
        max: 2030
        step: 1
      - label: "Report Files"
        name: report_files
        widget: list
        field:
          label: "Report File"
          name: "{{slug}}"
          widget: "file"
          required: false
          allow_multiple: false
          media_folder: "/assets/uploads/buy-american/"
      - *redirectfrom
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Council Members
    name: council-members
    folder: _council-members/
    create: true
    slug: "{{member_name}}"
    path: "{{slug}}"
    editor:
      preview: true
    fields:
      - {
          label: "Layout",
          name: "layout",
          widget: "hidden",
          default: "council-member",
        }
      - { label: "Member Name", name: "member_name", widget: "string" }
      - {
          label: "Member Title",
          name: "member_title",
          widget: "string",
          required: false,
        }
      - {
          label: "Location",
          name: "location",
          widget: "string",
          required: true,
        }
      - {
          label: "Image",
          name: "image",
          widget: "image",
          required: false,
          choose_url: false,
          media_folder: "/assets/uploads/images",
          public_folder: "images",
        }
      - {
          label: "Image Alternative Tag",
          name: "image_alt_text",
          widget: "string",
          required: true,
        }
      - &thumbnail {
          label: "Thumbnail",
          name: "thumbnail",
          hint: "Add an optional thumbnail image which is approximately 250px by 250px.",
          widget: "image",
          required: false,
          choose_url: false,
          media_folder: "/assets/uploads/thumbnails",
          public_folder: "thumbnails",
        }
      - {
          label: "Appearance Order",
          description: "The order you want the member to appear on the /council-member/ page",
          name: "order",
          widget: "number",
        }
      - {
          label: "Start Date",
          name: "start_date",
          widget: "datetime",
          format: "MMMM D, YYYY",
          date_format: "MMMM D, YYYY",
          time_format: false,
        }
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Featured Content
    name: featured
    files:
      - label: featured
        name: featured
        file: _data/featured.yaml
        editor:
          preview: true
        fields:
          - label: "Meetings and Events"
            name: "meetings"
            widget: "list"
            fields:
              - label: "Meetings and Events"
                name: "featured"
                widget: "relation"
                collection: "meetings"
                search_fields: ["title"]
                value_field: "{{title}}"
                display_fields: ["title", "excerpt"]
          - label: "Reports"
            name: "reports"
            widget: "list"
            fields:
              - label: "Featured"
                name: "featured"
                widget: "relation"
                collection: "reports"
                search_fields: ["title"]
                value_field: "{{title}}"
                display_fields: ["title"]
          - label: "Newsposts"
            name: "posts"
            widget: "list"
            fields:
              - label: "Featured"
                name: "featured"
                widget: "relation"
                collection: "posts"
                search_fields: ["title"]
                value_field: "{{title}}"
                display_fields: ["title"]
          - label: "Letters"
            name: "letters"
            widget: "list"
            fields:
              - label: "Featured"
                name: "featured"
                widget: "relation"
                collection: "letters"
                search_fields: ["title"]
                value_field: "{{title}}"
                display_fields: ["title"]
          - label: "Publications"
            name: "publications"
            widget: "list"
            fields:
              - label: "Featured"
                name: "featured"
                widget: "relation"
                collection: "publications"
                search_fields: ["title"]
                value_field: "{{title}}"
                display_fields: ["title"]
          - label: "Resources"
            name: "resources"
            widget: "list"
            fields:
              - label: "Featured"
                name: "featured"
                widget: "relation"
                collection: "resources"
                search_fields: ["title"]
                value_field: "{{title}}"
                display_fields: ["title"]
  - label: FOIA Reports
    name: foia_reports
    folder: _foia-reports/
    create: true
    slug: "foia-report-{{slug}}"
    path: "{{slug}}"
    editor:
      preview: true
    fields:
      - label: "Layout"
        name: "layout"
        widget: "hidden"
        default: "post"
      - label: "Title"
        name: "title"
        widget: "string"
      - label: "Report Type"
        name: "report_type"
        widget: "select"
        options: ["yearly", "quarterly", "chief-officer"]
      - label: "Report Year"
        name: "report_year"
        widget: "number"
        value_type: "int"
        min: 1980
        max: 2030
        step: 1
      - label: "Report Quarter"
        name: "quarter"
        widget: "number"
        value_type: "int"
        required: false
        min: 1
        max: 4
        step: 1
      - label: "Report Files"
        name: report_files
        widget: list
        field:
          label: "Report File"
          name: "{{slug}}"
          widget: "file"
          required: false
          allow_multiple: false
          media_folder: "/assets/uploads/foia-reports/{{report_year}}/{{report_type}}"
      - *redirectfrom
  - label: Footer Links
    name: footer_links
    files:
      - label: Footer Links
        name: footer_links
        file: _data/footer_links.yaml
        editor:
          preview: true
        fields:
          - label: "Budget and Performance"
            name: "budget"
            widget: "object"
            required: false
            fields:
              - label: "Name"
                name: "name"
                widget: "string"
              - label: "Links"
                name: "children"
                widget: "list"
                required: false
                fields:
                  - label: "Name"
                    name: "name"
                    widget: "string"
                  - label: "Url"
                    name: "url"
                    widget: "string"
          - label: "Resources"
            name: "resources"
            widget: "object"
            required: false
            fields:
              - label: "Name"
                name: "name"
                widget: "string"
              - label: "Links"
                name: "children"
                widget: "list"
                required: false
                fields:
                  - label: "Name"
                    name: "name"
                    widget: "string"
                  - label: "Url"
                    name: "url"
                    widget: "string"
          - label: "Agency Governance"
            name: "governance"
            widget: "object"
            required: false
            fields:
              - label: "Name"
                name: "name"
                widget: "string"
              - label: "Links"
                name: "children"
                widget: "list"
                required: false
                fields:
                  - label: "Name"
                    name: "name"
                    widget: "string"
                  - label: "Url"
                    name: "url"
                    widget: "string"
          - label: "Policies / Statements"
            name: "policies"
            widget: "object"
            required: false
            fields:
              - label: "Name"
                name: "name"
                widget: "string"
              - label: "Links"
                name: "children"
                widget: "list"
                required: false
                fields:
                  - label: "Name"
                    name: "name"
                    widget: "string"
                  - label: "Url"
                    name: "url"
                    widget: "string"
  - label: Letters
    name: letters
    folder: _letters/
    create: true
    slug: "{{date}}-{{slug}}"
    summary: "*{{title}}* ... ({{date}})"
    sortable_fields:
      - date
      - title
      - policy_areas
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
      - label: Categories
        field: categories
      - label: Policy Areas
        field: policy_areas
    editor:
      preview: true
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Title", name: "title", widget: "string" }
      - { name: "collection_name", widget: "hidden", default: "letters" }
      - &categories {
          label: "Categories",
          name: "categories",
          widget: "select",
          required: false,
          multiple: true,
          options:
            ["toolkits", "progress reports", "frameworks", "fact sheets"],
        }
      - &policy-areas {
          label: "Policy Areas",
          name: "policy_areas",
          widget: "relation",
          collection: "policy-areas",
          search_fields: ["title"],
          value_field: "title",
          display_fields: ["title"],
          multiple: true,
          min: 0,
          max: 100,
          required: false,
        }
      - *press-release
      - *thumbnail
      - {
          label: "Publish Date",
          name: "date",
          widget: "datetime",
          format: "YYYY-MM-DD",
          date_format: "YYYY-MM-DD",
          time_format: false,
        }
      - *video
      - *videocaptions
      - &miscfiles {
          label: "Miscellaneous 1",
          name: "misc_files_1",
          widget: "file",
          required: false,
          allow_multiple: false,
          media_folder: "/assets/uploads/{{collection_name}}/{{year}}/{{slug}}",
          public_folder: "{{collection_name}}/{{year}}/{{slug}}",
        }
      - {
        <<: *miscfiles,
        label: "Miscellaneous 2",
        name: "misc_files_2",
      }
      - {
        <<: *miscfiles,
        label: "Miscellaneous 3",
        name: "misc_files_3",
      }
      - *redirectfrom
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Meetings & Events
    name: meetings
    folder: _meetings/
    create: true
    slug: "{{date}}-{{slug}}"
    path: "{{meeting_year}}/{{slug}}"
    summary: "*{{title}}* ... ({{date}})"
    sortable_fields:
      - date
      - title
      - categories
      - policy_areas
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
      - label: Categories
        field: categories
      - label: Policy Areas
        field: policy_areas
    editor:
      preview: true
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Title", name: "title", widget: "string" }
      - { name: "collection_name", widget: "hidden", default: "meetings" }
      - {
          label: "Federal Register Notice",
          name: "federal_register_notice",
          widget: "string",
          required: false,
          hint: "Enter the Federal Register Notice URL.",
          pattern:
            [
              '[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)',
              "Must be a valid URL.",
            ],
        }
      - {
          label: "Meeting Year",
          name: "meeting_year",
          widget: "number",
          default: 2021,
          value_type: "int",
          min: 1980,
          max: 2030,
          step: 1,
        }
      - {
          label: "Meeting Date",
          name: "date",
          widget: "datetime",
          format: "YYYY-MM-DD",
          date_format: "YYYY-MM-DD",
          time_format: false,
        }
      - *policy-areas
      - *categories
      - *thumbnail
      - {
          label: "Agenda",
          name: "agenda",
          widget: "file",
          required: false,
          allow_multiple: false,
          media_folder: "/assets/uploads/meetings/{{year}}/{{slug}}",
          public_folder: "meetings/{{year}}/{{slug}}",
        }
      - {
          label: "Minutes",
          name: "minutes",
          widget: "file",
          required: false,
          allow_multiple: false,
          media_folder: "/assets/uploads/meetings/{{year}}/{{slug}}",
          public_folder: "meetings/{{year}}/{{slug}}",
        }
      - *press-release
      - *miscfiles
      - {
        <<: *miscfiles,
        label: "Miscellaneous 2",
        name: "misc_files_2",
      }
      - {
        <<: *miscfiles,
        label: "Miscellaneous 3",
        name: "misc_files_3",
      }
      - *video
      - *videocaptions
      - *redirectfrom
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Navigation for Site
    name: navigation
    files:
      - label: Navigation
        name: navigation
        file: _data/navigation.yaml
        editor:
          preview: true
        fields:
          - label: "Primary Navigation Links"
            name: "primary"
            widget: "list"
            fields:
              - label: "Name"
                name: "name"
                widget: "string"
              - label: "Url"
                name: "url"
                widget: "string"
                required: false
              - label: "Children Dropdown Links"
                name: "children"
                widget: "list"
                required: false
                fields:
                  - label: "Name"
                    name: "name"
                    widget: "string"
                  - label: "Url"
                    name: "url"
                    widget: "string"
          - label: "Secondary Navigation Links"
            name: "secondary"
            widget: "list"
            fields:
              - label: "Name"
                name: "name"
                widget: "string"
              - label: "Url"
                name: "url"
                widget: "string"
  - label: Newsroom
    name: posts
    folder: _posts/
    create: true
    slug: "{{date}}-{{slug}}"
    summary: "*{{title}}* ... [{{tag}}] ... ({{date}})"
    sortable_fields:
      - date
      - title
      - tag
      - categories
      - policy_areas
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
      - label: Tag
        field: tag
      - label: Categories
        field: categories
      - label: Policy Areas
        field: policy_areas
    view_filters:
      - label: "Funding Opportunities"
        field: tag
        pattern: "Funding Opportunities"
      - label: "Speech"
        field: tag
        pattern: "Speech"
      - label: "Newsletter"
        field: tag
        pattern: "Newsletter"
      - label: "Press Release"
        field: tag
        pattern: "Press Release"
    editor:
      preview: true
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Title", name: "title", widget: "string" }
      - { name: "collection_name", widget: "hidden", default: "newsroom" }
      - {
          label: "Publish Date",
          name: "date",
          widget: "datetime",
          format: "YYYY-MM-DD",
          date_format: "YYYY-MM-DD",
          time_format: false,
        }
      - { label: "Excerpt", name: "excerpt", required: false, widget: "text" }
      - {
          label: "Newsroom Type",
          name: "tag",
          required: false,
          widget: "select",
          options:
            [
              "Funding Opportunities",
              "Speech",
              "Newsletter",
              "Press Release",
            ],
        }
      - { label: "Permalink", name: "permalink", required: false }
      - *policy-areas
      - *categories
      - {
          label: "Document",
          name: "document",
          widget: "file",
          required: false,
          allow_multiple: false,
          media_folder: "/assets/uploads/documents",
          public_folder: "documents",
        }
      - {
          label: "Audio",
          name: "audio",
          widget: "file",
          required: false,
          allow_multiple: false,
          media_folder: "/assets/uploads/audios",
          public_folder: "audios",
        }
      - {
          label: "Image",
          name: "image",
          widget: "image",
          required: false,
          choose_url: false,
          media_folder: "/assets/uploads/images",
          public_folder: "images",
        }
      - {
          label: "Image Alternative Tag",
          name: "image_alt_text",
          widget: "string",
          required: false,
        }
      - *thumbnail
      - *video
      - *videocaptions
      - *miscfiles
      - {
        <<: *miscfiles,
        label: "Miscellaneous 2",
        name: "misc_files_2",
      }
      - {
        <<: *miscfiles,
        label: "Miscellaneous 3",
        name: "misc_files_3",
      }
      - *redirectfrom
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Policy Areas
    name: policy-areas
    folder: _policy-areas/
    create: false
    fields:
      - { label: "Title", name: "title", widget: "string" }
  - label: Publications
    name: publications
    folder: _publications/
    create: true
    path: "{{publication_year}}/{{slug}}"
    summary: "*{{title}}* ... [{{categories}}] ... ({{publication_year}})"
    sortable_fields:
      - date
      - publication_year
      - title
      - categories
      - policy_areas
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
      - label: Publication Year
        field: publication_year
    editor:
      preview: true
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Title", name: "title", widget: "string" }
      - { name: "collection_name", widget: "hidden", default: "publications" }
      - {
          label: "Publish Date",
          name: "date",
          widget: "datetime",
          format: "MMMM D, YYYY",
          date_format: "MMMM D, YYYY",
          time_format: false,
        }
      - {
          label: "Publication Year",
          name: "publication_year",
          widget: "number",
          default: 2021,
          value_type: "int",
          min: 1980,
          max: 2030,
          step: 1,
        }
      - *policy-areas
      - *categories
      - *press-release
      - *thumbnail
      - *video
      - *videocaptions
      - {
          label: "Report Document",
          name: "document",
          widget: "file",
          required: false,
          allow_multiple: false,
          media_folder: "/assets/uploads/reports/{{report_year}}",
          public_folder: "reports/{{report_year}}",
        }
      - *miscfiles
      - {
        <<: *miscfiles,
        label: "Miscellaneous 2",
        name: "misc_files_2",
      }
      - {
        <<: *miscfiles,
        label: "Miscellaneous 3",
        name: "misc_files_3",
      }
      - *redirectfrom
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Reports
    name: reports
    folder: _reports/
    create: true
    slug: "{{title}}"
    path: "{{report_year}}/{{slug}}"
    summary: "*{{title}}* ... [{{categories}}] ... ({{report_year}})"
    sortable_fields:
      - date
      - report_year
      - title
      - tag
      - policy_areas
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
      - label: Report Year
        field: report_year
      - label: Categories
        field: categories
      - label: Policy Areas
        field: policy_areas
    editor:
      preview: true
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Title", name: "title", widget: "string" }
      - { name: "collection_name", widget: "hidden", default: "reports" }
      - {
          label: "Publish Date",
          name: "date",
          widget: "datetime",
          format: "MMMM D, YYYY",
          date_format: "MMMM D, YYYY",
          time_format: false,
        }
      - {
          label: "Report Year",
          name: "report_year",
          widget: "number",
          default: 2022,
          value_type: "int",
          min: 1980,
          max: 2030,
          step: 1,
        }
      - *policy-areas
      - *categories
      - *press-release
      - {
          label: "Report Word Document",
          name: "word_document",
          widget: "file",
          required: false,
          media_folder: "/assets/uploads/reports/{{report_year}}",
          public_folder: "reports/{{report_year}}",
        }
      - {
          label: "Report PDF Document",
          name: "pdf_document",
          widget: "file",
          required: false,
          media_folder: "/assets/uploads/reports/{{report_year}}",
          public_folder: "reports/{{report_year}}",
        }
      - {
          label: "Image",
          name: "image",
          widget: "image",
          required: false,
          choose_url: false,
          media_folder: "/assets/uploads/images",
          public_folder: "images",
        }
      - {
          label: "Image Alternative Tag",
          name: "image_alt_text",
          widget: "string",
          required: true,
        }
      - *thumbnail
      - *video
      - *videocaptions
      - *miscfiles
      - {
        <<: *miscfiles,
        label: "Miscellaneous 2",
        name: "misc_files_2",
      }
      - {
        <<: *miscfiles,
        label: "Miscellaneous 3",
        name: "misc_files_3",
      }
      - *redirectfrom
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Resource Pages
    name: resources
    files:
      - label: Resources
        name: resources
        file: resources/index.md
        editor:
          preview: true
        fields:
          - {
              label: "Layout",
              name: "layout",
              widget: "hidden",
              default: "single-page",
            }
          - {
              label: "Permalink",
              name: "permalink",
              widget: "hidden",
              default: "/resources/",
            }
          - { label: "Title", name: "title", widget: "string" }
          - { label: "Description", name: "description", widget: "string" }
          - { label: "Body", name: "body", widget: "markdown" }
      - label: FAQ
        name: faq
        file: resources/faq.md
        editor:
          preview: true
        fields:
          - {
              label: "Layout",
              name: "layout",
              widget: "hidden",
              default: "single-page",
            }
          - {
              label: "Permalink",
              name: "permalink",
              widget: "hidden",
              default: "/resources/faq/",
            }
          - { label: "Title", name: "title", widget: "string" }
          - { label: "Description", name: "description", widget: "string" }
          - *video
          - *videocaptions
          - *redirectfrom
          - { label: "Body", name: "body", widget: "markdown" }
  - label: Testimony
    name: testimony
    folder: _testimonies/
    create: true
    slug: "{{date}}-{{slug}}"
    summary: "*{{title}}* ... [{{tag}}] ... ({{date}})"
    sortable_fields:
      - date
      - title
      - policy_areas
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
      - label: Categories
        field: categories
      - label: Policy Areas
        field: policy_areas
    editor:
      preview: true
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Title", name: "title", widget: "string" }
      - { name: "collection_name", widget: "hidden", default: "newsroom" }
      - {
          label: "Publish Date",
          name: "date",
          widget: "datetime",
          format: "YYYY-MM-DD",
          date_format: "YYYY-MM-DD",
          time_format: false,
        }
      - { label: "Excerpt", name: "excerpt", required: false, widget: "text" }
      - { label: "Permalink", name: "permalink", required: false }
      - *policy-areas
      - *categories
      - {
          label: "Document",
          name: "document",
          widget: "file",
          required: false,
          allow_multiple: false,
          media_folder: "/assets/uploads/documents",
          public_folder: "documents",
        }
      - {
          label: "Audio",
          name: "audio",
          widget: "file",
          required: false,
          allow_multiple: false,
          media_folder: "/assets/uploads/audios",
          public_folder: "audios",
        }
      - {
          label: "Image",
          name: "image",
          widget: "image",
          required: false,
          choose_url: false,
          media_folder: "/assets/uploads/images",
          public_folder: "images",
        }
      - {
          label: "Image Alternative Tag",
          name: "image_alt_text",
          widget: "string",
          required: false,
        }
      - *thumbnail
      - *video
      - *videocaptions
      - *miscfiles
      - {
        <<: *miscfiles,
        label: "Miscellaneous 2",
        name: "misc_files_2",
      }
      - {
        <<: *miscfiles,
        label: "Miscellaneous 3",
        name: "misc_files_3",
      }
      - *redirectfrom
      - { label: "Body", name: "body", widget: "markdown" }
  - label: Widgets Side Navigation
    name: widgets
    files:
      - label: Widgets
        name: widgets
        file: _data/widgets.yaml
        editor:
          preview: true
        fields:
          - label: "Letters sidenav links widget"
            name: "letters"
            widget: "list"
            fields:
              - label: "Title"
                name: "title"
                widget: "string"
              - label: "Url"
                name: "url"
                widget: "string"
          - label: "Newsroom sidenav links widget"
            name: "newsroom"
            widget: "list"
            fields:
              - label: "Title"
                name: "title"
                widget: "string"
              - label: "Url"
                name: "url"
                widget: "string"
          - label: "Publications sidenav links widget"
            name: "publications"
            widget: "list"
            fields:
              - label: "Title"
                name: "title"
                widget: "string"
              - label: "Url"
                name: "url"
                widget: "string"
          - label: "Resources sidenav links widget"
            name: "resources"
            widget: "list"
            fields:
              - label: "Title"
                name: "title"
                widget: "string"
              - label: "Url"
                name: "url"
                widget: "string"
