You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 line
1.6 KiB

  1. backend: # Set up your backend
  2. name: gitlab
  3. local_backend: true # Optional if you want to use the local proxy mode
  4. publish_mode: editorial_workflow
  5. media_folder: media # I'm not using these default media directories at the moment.
  6. public_folder: /media
  7. collections:
  8. - name: "posts"
  9. label: "Posts"
  10. folder: "content/posts"
  11. create: true
  12. delete: true
  13. path: "{{slug}}/index"
  14. slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
  15. media_folder: "images"
  16. public_folder: "./images"
  17. fields:
  18. - { label: "Title", name: "title", widget: "string" }
  19. - { label: "Author", name: "author", widget: "relation", collection: "authors", valueField: "name", searchFields: ["name"] }
  20. - { label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD", dateFormat: "YYYY-MM-DD", timeFormat: false }
  21. - { label: "Excerpt", name: "excerpt", widget: "string", required: false }
  22. - { label: "Hero", name: "hero", widget: "image" }
  23. - { label: "Body", name: "body", widget: "markdown" }
  24. - name: "authors"
  25. label: "Authors"
  26. folder: "content/authors/authors"
  27. create: true
  28. delete: true
  29. format: "yml"
  30. identifier_field: "name"
  31. media_folder: "avatars"
  32. public_folder: "./avatars"
  33. editor:
  34. preview: false
  35. fields:
  36. - { label: Name, name: name, widget: string }
  37. - { label: Bio, name: bio, widget: string }
  38. - { label: Featured, name: featured, widget: boolean, default: false }
  39. - { label: Avatar, name: avatar, widget: image }
  40. - { label: Social, name: social, widget: list, collapsed: false, field: { label: URL, name: url, widget: string } }