config.yml 1.21 KB
Newer Older
Eliot Berriot's avatar
Eliot Berriot committed
1 2 3 4 5 6 7 8 9
backend:
  name: gitlab
  repo: eliotberriot/eliotberriot.com # Path to your GitLab repository
  auth_type: implicit # Required for implicit grant
  app_id: 6c03940a6dc5a51e37006943c1eae9e1ccb90ee45944a44b25b7683230c884c6 # Application ID from your GitLab settings
  api_root: https://code.eliotberriot.com/api/v4
  base_url: https://code.eliotberriot.com
  auth_endpoint: oauth/authorize

Eliot Berriot's avatar
Eliot Berriot committed
10
site_url: https://eliotberriot.com
Eliot Berriot's avatar
Eliot Berriot committed
11 12 13 14 15 16
media_folder: assets/posts
collections:
  - name: "blog" # Used in routes, e.g., /admin/collections/blog
    label: "Blog post" # Used in the UI
    folder: "_posts" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
Eliot Berriot's avatar
Eliot Berriot committed
17
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
Eliot Berriot's avatar
Eliot Berriot committed
18
    preview_path: "{{year}}/{{month}}/{{day}}/{{title}}"
Eliot Berriot's avatar
Eliot Berriot committed
19
    preview_path_date_field: "date"
Eliot Berriot's avatar
Eliot Berriot committed
20 21 22 23 24
    fields: # The fields for each document, usually in front matter
      - {label: "Layout", name: "layout", widget: "hidden", default: "post"}
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Body", name: "body", widget: "markdown"}