static config from eloi
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
maxime-cool 2024-01-15 17:47:16 +01:00
parent 0ee574eccd
commit ea2450cb15

View file

@ -10,4 +10,12 @@ media_folder: "static/images/uploads"
collections:
- name: posts
identifier_field: name
folder: _posts/blog
folder: '_posts/blog' # The path to the folder where the documents are stored
slug: '{{year}}-{{month}}-{{day}}-{{slug}}' # Filename template, e.g., yyyy-MM-dd-title.md
fields: # The fields for each document, usually in front matter
- { label: 'Layout', name: 'layout', widget: 'hidden', default: 'blog' }
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
- { label: 'Featured Image', name: 'thumbnail', widget: 'image' }
- { label: 'Rating (scale of 1-5)', name: 'rating', widget: 'number' }
- { label: 'Body', name: 'body', widget: 'markdown' }