backend:
  name: gitlab
  repo: peribian/web
  branch: master
  auth_type: pkce
  app_id: 7077386556b46fcd14ab88615d8aff63d86d659884ed6b3e46b605a187e71ee3
  use_graphql: true

site_url: https://preview.seekandhit.com
display_url: https://preview.seekandhit.com
publish_mode: editorial_workflow
show_preview_links: false

media_folder: static/media
public_folder: /media

slug:
  encoding: ascii
  clean_accents: true
  sanitize_replacement: "-"

collections:
  - name: posts
    label: Blog posts
    label_singular: Blog post
    folder: content/post
    path: "{{section}}/{{slug}}/index"
    create: true
    format: toml-frontmatter
    extension: md
    summary: "{{title}} — {{dirname}}"
    editor:
      preview: false
    fields:
      - label: Section
        name: section
        widget: select
        required: false
        default: seekandhit-related
        hint: Selects the content directory for newly created posts. Existing posts keep their current directory.
        options:
          - { label: Advertising, value: advertising }
          - { label: Analytics, value: analytics }
          - { label: Case study, value: case-study }
          - { label: Digital strategy, value: digital-strategy }
          - { label: Engineering, value: engineering }
          - { label: Events, value: events }
          - { label: Professional data, value: professional-data }
          - { label: Project management, value: project-management }
          - { label: SeekandHit, value: seekandhit-related }
          - { label: Tracking, value: tracking }
          - { label: Analiza web korisnika, value: analiza-web-korisnika }
          - { label: Digitalna strategija, value: digitalna-strategija }
          - { label: Oglašavanje, value: oglasavanje }
          - { label: SeekandHit Hrvatska, value: seekandhit }
          - { label: Upravljanje podacima, value: upravljanje-podacima }
      - { label: Title, name: title, widget: string }
      - { label: Publish date, name: date, widget: datetime, required: false }
      - { label: Last modified, name: lastmod, widget: datetime, required: false }
      - { label: Draft, name: draft, widget: boolean, default: true, required: false }
      - { label: URL slug, name: slug, widget: string, required: false }
      - { label: Translation key, name: translationKey, widget: string, required: false }
      - { label: Author, name: author, widget: string, required: false }
      - { label: Description, name: description, widget: text, required: false }
      - label: Featured image
        name: image
        widget: image
        required: false
        hint: Upload WebP raster images or SVG vector images only.
      - label: Categories
        name: categories
        widget: list
        required: false
        field: { label: Category, name: category, widget: string }
      - label: Tags
        name: tags
        widget: list
        required: false
        field: { label: Tag, name: tag, widget: string }
      - label: Redirect aliases
        name: aliases
        widget: list
        required: false
        field: { label: Path, name: path, widget: string }
      - { label: List behavior, name: list, widget: string, required: false }
      - { label: Render behavior, name: render, widget: string, required: false }
      - { label: Body, name: body, widget: markdown, required: false }

  - name: services
    label: Services
    label_singular: Service
    folder: content/service
    path: "{{slug}}/index"
    create: true
    format: toml-frontmatter
    extension: md
    summary: "{{title}} — {{dirname}}"
    editor:
      preview: false
    fields: &standard_fields
      - { label: Title, name: title, widget: string }
      - { label: Publish date, name: date, widget: datetime, required: false }
      - { label: Last modified, name: lastmod, widget: datetime, required: false }
      - { label: Draft, name: draft, widget: boolean, default: true, required: false }
      - { label: URL slug, name: slug, widget: string, required: false }
      - { label: Translation key, name: translationKey, widget: string, required: false }
      - { label: Author, name: author, widget: string, required: false }
      - { label: Description, name: description, widget: text, required: false }
      - label: Featured image
        name: image
        widget: image
        required: false
        hint: Upload WebP raster images or SVG vector images only.
      - label: Categories
        name: categories
        widget: list
        required: false
        field: { label: Category, name: category, widget: string }
      - label: Tags
        name: tags
        widget: list
        required: false
        field: { label: Tag, name: tag, widget: string }
      - label: Redirect aliases
        name: aliases
        widget: list
        required: false
        field: { label: Path, name: path, widget: string }
      - { label: Body, name: body, widget: markdown, required: false }

  - name: work
    label: Work
    label_singular: Work item
    folder: content/work
    path: "{{slug}}/index"
    create: true
    format: toml-frontmatter
    extension: md
    summary: "{{title}} — {{dirname}}"
    editor:
      preview: false
    fields: *standard_fields

  - name: careers
    label: Careers
    label_singular: Career
    folder: content/career
    path: "{{slug}}/index"
    create: true
    format: toml-frontmatter
    extension: md
    summary: "{{title}} — {{dirname}}"
    editor:
      preview: false
    fields: *standard_fields

  - name: pages
    label: Pages
    label_singular: Page
    folder: content/page
    path: "{{slug}}/index"
    create: true
    format: toml-frontmatter
    extension: md
    summary: "{{title}} — {{dirname}}"
    editor:
      preview: false
    fields:
      - { label: Title, name: title, widget: string }
      - { label: Publish date, name: date, widget: datetime, required: false }
      - { label: Last modified, name: lastmod, widget: datetime, required: false }
      - { label: Draft, name: draft, widget: boolean, default: true, required: false }
      - { label: URL slug, name: slug, widget: string, required: false }
      - { label: Translation key, name: translationKey, widget: string, required: false }
      - { label: Author, name: author, widget: string, required: false }
      - { label: Description, name: description, widget: text, required: false }
      - label: Header kind
        name: headerKind
        widget: select
        required: false
        options: [homepage, image, split]
      - { label: Header title, name: headerTitle, widget: string, required: false }
      - { label: Header description, name: headerDescription, widget: text, required: false }
      - label: Header image
        name: headerImage
        widget: image
        required: false
        hint: Upload WebP raster images or SVG vector images only.
      - { label: Header image alt text, name: headerImageAlt, widget: string, required: false }
      - { label: Header scroll label, name: headerScrollDown, widget: string, required: false }
      - label: Categories
        name: categories
        widget: list
        required: false
        field: { label: Category, name: category, widget: string }
      - label: Tags
        name: tags
        widget: list
        required: false
        field: { label: Tag, name: tag, widget: string }
      - { label: List behavior, name: list, widget: string, required: false }
      - { label: Render behavior, name: render, widget: string, required: false }
      - { label: Body, name: body, widget: markdown, required: false }
