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.

39 lines
1.7 KiB

2 years ago
  1. backend:
  2. name: git-gateway
  3. branch: master
  4. # publish_mode: editorial_workflow
  5. media_folder: 'src/assets/images' # Media files will be stored in the repo under src/assets/images/posts
  6. public_folder: '/assets/images' # The src attribute for uploaded media will begin with assets/images/posts
  7. # media_folder: 'src/assets/images/posts' # Media files will be stored in the repo under src/assets/images/posts
  8. # public_folder: '/assets/images/posts' # The src attribute for uploaded media will begin with assets/images/posts
  9. collections:
  10. - name: "blog" # Used in routes, e.g., /admin/collections/blog
  11. label: "Blog" # Used in the UI
  12. folder: "src/posts" # The path to the folder where the documents are stored
  13. create: true # Allow users to create new documents in this collection
  14. slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
  15. editor:
  16. preview: false # Disable the editor preview and use instead 'preview links'
  17. fields: # The fields for each document, usually in front matter
  18. - { name: "title", label: "Title" }
  19. - { name: "description", label: "Description" }
  20. - { name: "date", label: "Date", widget: "datetime" }
  21. - { name: "body", label: "Body", widget: "markdown" }
  22. - name: "config"
  23. label: "Configuration"
  24. editor:
  25. preview: false
  26. files:
  27. - name: "global"
  28. label: "Global"
  29. file: "src/_data/site.json"
  30. fields:
  31. - { name: "site_name", label: "Site name" }
  32. - { name: "title", label: "Site title" }
  33. - { name: "description", label: "Site description" }
  34. - { name: "url", label: "Site url" }
  35. - { name: "locale", label: "Language" }
  36. - { name: "author", label: "Author" }