local_backend: true
publish_mode: editorial_workflow

backend:
  name: github
  repo: RobertLeeMorgan/truxor
  branch: main
  site_domain: https://truxor.pages.dev
  base_url: https://truxor.pages.dev
  auth_endpoint: /api/auth
  squash_merges: true

media_folder: "src/assets/images"
public_folder: "/src/assets/images"


collections:
  - name: "machines"
    label: "Machines"
    folder: "src/content/machines"
    media_folder: "../../assets/images"
    public_folder: "../../assets/images"
    create: true
    slug: "{{slug}}"
    fields: 
      - { label: "Name", name: "title", widget: "string" }
      - { label: "Tagline", name: "tagline", widget: "string" }
      - { label: "Hero Image", name: "heroImage", widget: "image" }

      - label: "Overview Headline"
        name: "overviewHeadline"
        widget: "string"
        required: false

      - label: "Overview Image"
        name: "overviewImage"
        widget: "image"

      - { label: "Overview", name: "overview", widget: "markdown" }

      - label: "Key Features"
        name: "features"
        widget: "list"
        required: false
        fields:
          - { label: "Icon", name: "icon", widget: "string" }
          - { label: "Title", name: "title", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }

      - { label: "Specifications", name: "specs", widget: "markdown" }

      - label: "Applications"
        name: "applications"
        widget: "list"
        required: false
        fields:
          - { label: "Icon", name: "icon", widget: "string" }
          - { label: "Title", name: "title", widget: "string" }

      - label: "Video"
        name: "video"
        widget: "object"
        required: false
        fields:
          - { label: "YouTube ID", name: "youtubeId", widget: "string", required: false }
          - { label: "Eyebrow", name: "eyebrow", widget: "string", required: false }
          - { label: "Title", name: "title", widget: "string", required: false }
          - { label: "Description", name: "description", widget: "markdown", required: false }
          - { label: "FAQ Link", name: "faqHref", widget: "string", required: false}
          - { label: "FAQ Text", name: "faqText", widget: "string", required: false }

  - name: "attachments"
    label: "Attachments"
    folder: "src/content/attachments"
    media_folder: "../../assets/images"
    public_folder: "../../assets/images"
    create: true
    slug: "{{slug}}"

    fields:
      - { label: "Name", name: "title", widget: "string" }

      - { label: "Description", name: "description", widget: "markdown" }

      - { label: "Image", name: "image", widget: "image", required: false }

      - label: "Sections"
        name: "sections"
        widget: "list"
        required: false
        fields:
          - { label: "Section Title", name: "title", widget: "string" }

          - label: "Items"
            name: "items"
            widget: "list"
            fields:
              - { label: "Name", name: "name", widget: "string" }
              - { label: "Description", name: "description", widget: "text" }
              - { label: "Image", name: "image", widget: "image", required: false }
              - { label: "Includes", name: "includes", widget: "list", required: false}
              - { label: "Tags", name: "tags", widget: "list", required: false}
              - label: "For Use With"
                name: "machines"
                widget: "list"
                required: false
                field:
                  label: "Machine"
                  name: "machine"
                  widget: "string"

              - label: "Technical Data"
                name: "technicalData"
                widget: "list"
                required: false
                fields:
                  - { label: "Part Name", name: "name", widget: "string", required: false }
                  - { label: "Part Image", name: "image", widget: "image", required: false }

                  - label: "Specifications"
                    name: "specs"
                    widget: "list"
                    fields:
                      - { label: "Label", name: "label", widget: "string" }
                      - { label: "Value", name: "value", widget: "string" }

  - name: "services"
    label: "Services"
    folder: "src/content/services"
    create: true
    slug: "{{slug}}"
    media_folder: "../../assets/images"
    public_folder: "../../assets/images"
    fields:
      - { label: "Title", name: "title", widget: "string" }
      - { label: "Hero Image", name: "heroImage", widget: "image" }

      - { label: "Overview", name: "overview", widget: "markdown" }

      - label: "Sections"
        name: "sections"
        widget: "list"
        required: false
        fields:
          - { label: "Title", name: "title", widget: "string" }
          - { label: "Content", name: "content", widget: "markdown" }

      - label: "Card Section"
        name: "cardSection"
        widget: "object"
        required: false
        fields:
          - { label: "Title", name: "title", widget: "string" }
          - label: "Cards"
            name: "items"
            widget: "list"
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Description", name: "description", widget: "markdown" }

      - label: "Highlights"
        name: "highlights"
        widget: "object"
        required: false
        fields:
          - { label: "Image", name: "image", widget: "image" }

          - label: "Items"
            name: "items"
            widget: "list"
            fields:
              - { label: "Icon", name: "icon", widget: "string" }
              - { label: "Title", name: "title", widget: "string" }

      - label: "CTA"
        name: "cta"
        widget: "object"
        required: false
        fields:
          - { label: "Title", name: "title", widget: "string", required: false }
          - { label: "Text", name: "text", widget: "markdown", required: false }
          - { label: "Button Label", name: "buttonLabel", widget: "string", required: false }
          - { label: "Button Link", name: "buttonLink", widget: "string", required: false }

  

  - name: "caseStudies"
    label: "Case Studies"
    folder: "src/content/insights/case-studies"
    create: true
    slug: "{{slug}}"
    media_folder: "../../../assets/images"
    public_folder: "../../../assets/images"
    fields:
      - { label: "Title", name: "title", widget: "string" }

      - { label: "Slug", name: "slug", widget: "string" }

      - { label: "Image", name: "image", widget: "image", required: false }

      - {
          label: "Feature on homepage",
          name: "featured",
          widget: "number",
          required: false,
          value_type: "int",
          min: 1,
          max: 2
        }

      - { label: "Summary", name: "summary", widget: "text" }

      - { label: "Date", name: "date", widget: "datetime", required: false, time_format: false }

      - { label: "Location", name: "location", widget: "string", required: false }

      - { label: "Customer", name: "customer", widget: "string", required: false }

      - label: "Tags"
        name: "tags"
        widget: "list"
        required: false
        field:
          label: "Tag"
          name: "tag"
          widget: "string"

      - label: "Sections"
        name: "sections"
        widget: "list"
        fields:
          - { label: "Title", name: "title", widget: "string" }

          - { label: "Content", name: "content", widget: "markdown" }

          - label: "Images"
            name: "images"
            widget: "list"
            required: false
            field:
              label: "Image"
              name: "image"
              widget: "image"

      - label: "Video"
        name: "video"
        widget: "object"
        required: false
        fields:
          - { label: "YouTube ID", name: "youtubeId", widget: "string", required: false }
          - { label: "Title", name: "title", widget: "string", required: false }
      

  - name: "operations"
    label: "Operations"
    folder: "src/content/insights/operations"
    create: true
    slug: "{{slug}}"
    media_folder: "../../../assets/images"
    public_folder: "../../../assets/images"
    fields:
      - { label: "Title", name: "title", widget: "string" }

      - { label: "Slug", name: "slug", widget: "string" }

      - { label: "Image", name: "image", widget: "image", required: false }

      - { label: "Summary", name: "summary", widget: "text" }

      - { label: "Date", name: "date", widget: "datetime", required: false, time_format: false }

      - { label: "Location", name: "location", widget: "string", required: false }

      - { label: "Customer", name: "customer", widget: "string", required: false }

      - label: "Tags"
        name: "tags"
        widget: "list"
        required: false
        field:
          label: "Tag"
          name: "tag"
          widget: "string"

      - label: "Sections"
        name: "sections"
        widget: "list"
        fields:
          - { label: "Title", name: "title", widget: "string" }

          - { label: "Content", name: "content", widget: "markdown" }

          - label: "Images"
            name: "images"
            widget: "list"
            required: false
            field:
              label: "Image"
              name: "image"
              widget: "image"
      
      - label: "Video"
        name: "video"
        widget: "object"
        required: false
        fields:
          - { label: "YouTube ID", name: "youtubeId", widget: "string", required: false }
          - { label: "Title", name: "title", widget: "string", required: false }
      

  - name: "news"
    label: "News"
    folder: "src/content/insights/news"
    create: true
    slug: "{{slug}}"
    media_folder: "../../../assets/images"
    public_folder: "../../../assets/images"
    fields:
      - { label: "Title", name: "title", widget: "string" }

      - { label: "Slug", name: "slug", widget: "string" }

      - { label: "Image", name: "image", widget: "image", required: false }

      - { label: "Summary", name: "summary", widget: "text" }

      - { label: "Date", name: "date", widget: "datetime", required: false, time_format: false }

      - { label: "Location", name: "location", widget: "string", required: false }

      - { label: "Customer", name: "customer", widget: "string", required: false }

      - label: "Tags"
        name: "tags"
        widget: "list"
        required: false
        field:
          label: "Tag"
          name: "tag"
          widget: "string"

      - label: "Sections"
        name: "sections"
        widget: "list"
        fields:
          - { label: "Title", name: "title", widget: "string" }

          - { label: "Content", name: "content", widget: "markdown" }

          - label: "Images"
            name: "images"
            widget: "list"
            required: false
            field:
              label: "Image"
              name: "image"
              widget: "image"
      
      - label: "Video"
        name: "video"
        widget: "object"
        required: false
        fields:
          - { label: "YouTube ID", name: "youtubeId", widget: "string", required: false }
          - { label: "Title", name: "title", widget: "string", required: false }

  - name: "static_pages"
    label: "Static Pages"
    files:

    - file: "src/content/pages/home.md"
      name: "home"
      label: "Home"
      media_folder: "../../../assets/images"
      public_folder: "../../../assets/images"
      fields:
        - { name: "title", label: "SEO Title", widget: "string" }

        - label: "Hero"
          name: "hero"
          widget: "object"
          fields:
            - { name: "heading", label: "Heading", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }
            - { name: "image", label: "Image", widget: "image" }

        - label: "About"
          name: "about"
          widget: "object"
          fields:
            - { name: "eyebrow", label: "Eyebrow", widget: "string" }
            - { name: "title", label: "Title", widget: "string" }
            - { name: "image", label: "Image", widget: "image" }

        - label: "Machines"
          name: "machines"
          widget: "object"
          fields:
            - { name: "eyebrow", label: "Eyebrow", widget: "string" }
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }

        - label: "Attachments"
          name: "attachments"
          widget: "object"
          fields:
            - { name: "eyebrow", label: "Eyebrow", widget: "string" }
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }

        - label: "Services"
          name: "services"
          widget: "object"
          fields:
            - { name: "eyebrow", label: "Eyebrow", widget: "string" }
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }

        - label: "Clients"
          name: "clients"
          widget: "object"
          fields:
            - { name: "eyebrow", label: "Eyebrow", widget: "string" }
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }
            - { name: "image", label: "Image", widget: "image" }

        - label: "Case Studies"
          name: "caseStudies"
          widget: "object"
          fields:
            - { name: "eyebrow", label: "Eyebrow", widget: "string" }
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }

        - label: "News"
          name: "news"
          widget: "object"
          fields:
            - { name: "eyebrow", label: "Eyebrow", widget: "string" }
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }

        - label: "Call To Action"
          name: "cta"
          widget: "object"
          fields:
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }
        
        - label: "Video"
          name: "video"
          widget: "object"
          required: false
          fields:
            - { label: "YouTube ID", name: "youtubeId", widget: "string", required: false }
            - { label: "Eyebrow", name: "eyebrow", widget: "string", required: false }
            - { label: "Title", name: "title", widget: "string", required: false }
            - { label: "Description", name: "description", widget: "markdown", required: false }
            - { label: "FAQ Link", name: "faqHref", widget: "string", required: false}
            - { label: "FAQ Text", name: "faqText", widget: "string", required: false }

    - file: "src/content/pages/about.md"
      name: "about"
      label: "About"
      media_folder: "../../../assets/images"
      public_folder: "../../../assets/images"
      fields:
        - { label: "Title", name: "title", widget: "string" }
        - { label: "Subtitle", name: "subtitle", widget: "string" }

        - { label: "Hero Text", name: "intro", widget: "markdown" }

        - label: "Hero Image"
          name: "image"
          widget: "image"
          required: true

        - label: "Key Stats"
          name: "stats"
          widget: "list"
          required: false
          fields:
            - { label: "Icon", name: "icon", widget: "string" }
            - { label: "Title", name: "title", widget: "string" }
            - { label: "Description", name: "description", widget: "text" }

        - label: "Sections"
          name: "sections"
          widget: "list"
          fields:
            - { label: "Title", name: "title", widget: "string" }

            - { label: "Content", name: "content", widget: "markdown" }

            - label: "Image"
              name: "image"
              widget: "image"
              required: false

        - label: "Customer Types"
          name: "clients"
          widget: "list"
          required: false
          fields:
            - { label: "Icon", name: "icon", widget: "string" }
            - { label: "Title", name: "title", widget: "string" }

        - label: "Applications"
          name: "applications"
          widget: "list"
          required: false
          field:
            label: "Application"
            name: "application"
            widget: "string"

    - file: "src/content/pages/machines.md"
      name: "machines"
      label: "Machines"
      media_folder: "../../../assets/images"
      public_folder: "../../../assets/images"
      fields:
        - { name: "title", label: "SEO Title", widget: "string" }

        - label: "Hero"
          name: "hero"
          widget: "object"
          fields:
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }
            - { name: "image", label: "Image", widget: "image" }

        - label: "Hero Buttons"
          name: "buttons"
          widget: "list"
          fields:
            - { name: "label", label: "Label", widget: "string" }
            - { name: "href", label: "Link", widget: "string" }
            - label: "Variant"
              name: "variant"
              widget: "select"
              options:
                - { label: "Primary", value: "primary" }
                - { label: "Secondary", value: "secondary" }
                - { label: "Tertiary", value: "tertiary" }
            - label: "Target"
              name: "target"
              widget: "select"
              required: false
              options:
                - { label: "New tab", value: "_blank" }
                - { label: "Same tab", value: "_self" }
                - { label: "Parent frame", value: "_parent" }
                - { label: "Top frame", value: "_top" }

        - label: "Overview Features"
          name: "overviewFeatures"
          widget: "list"
          fields:
            - { name: "icon", label: "Icon", widget: "string" }
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "string" }

        - label: "Applications"
          name: "applications"
          widget: "object"
          fields:
            - { name: "eyebrow", label: "Eyebrow", widget: "string" }
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "markdown" }

            - label: "Items"
              name: "items"
              widget: "list"
              fields:
                - { name: "title", label: "Title", widget: "string" }
                - { name: "description", label: "Description", widget: "markdown" }
                - { name: "image", label: "Image", widget: "image" }
                - { name: "link", label: "Link", widget: "string" }

        - label: "Environments"
          name: "environments"
          widget: "list"
          fields:
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }
            - { name: "image", label: "Image", widget: "image" }

        - label: "Comparison"
          name: "comparison"
          widget: "list"
          fields:
            - label: "Row"
              name: "row"
              widget: "list"
              field:
                label: "Cell"
                name: "cell"
                widget: "string"

        - label: "CTA"
          name: "cta"
          widget: "object"
          fields:
            - { name: "title", label: "Title", widget: "string" }
            - { name: "description", label: "Description", widget: "text" }

            - label: "Buttons"
              name: "buttons"
              widget: "list"
              fields:
                - { name: "label", label: "Label", widget: "string" }
                - { name: "href", label: "Link", widget: "string" }
                - label: "Variant"
                  name: "variant"
                  widget: "select"
                  options:
                    - { label: "Primary", value: "primary" }
                    - { label: "Secondary", value: "secondary" }
                    - { label: "Tertiary", value: "tertiary" }

        - label: "Video"
          name: "video"
          widget: "object"
          required: false
          fields:
            - { label: "YouTube ID", name: "youtubeId", widget: "string", required: false }
            - { label: "Eyebrow", name: "eyebrow", widget: "string", required: false }
            - { label: "Title", name: "title", widget: "string", required: false }
            - { label: "Description", name: "description", widget: "markdown", required: false }
            - { label: "FAQ Link", name: "faqHref", widget: "string", required: false}
            - { label: "FAQ Text", name: "faqText", widget: "string", required: false }

    - file: "src/content/insights/faq.md"
      name: "faq"
      label: "FAQ"
      fields:
        - { name: "title", label: "Title", widget: "string" }

        - label: "Sections"
          name: "sections"
          widget: "list"
          fields:
            - { name: "title", label: "Section Title", widget: "string" }

            - label: "Questions"
              name: "questions"
              widget: "list"
              fields:
                - { name: "question", label: "Question", widget: "string" }
                - { name: "answer", label: "Answer", widget: "markdown" }
