diff options
Diffstat (limited to 'static/admin/config.yml')
-rw-r--r-- | static/admin/config.yml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..2d710c0 --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,56 @@ +backend: + name: git-gateway + +#publish_mode: editorial_workflow +display_url: https://puszcza.netlify.com +site_url: https://puszcza.netlify.com +locale: 'pl' + +media_folder: 'static/media' +media_library: + name: uploadcare + config: + publicKey: demopublickey + +collections: + - name: posts + label: 'Wpisy' + folder: 'wpisy' + slug: '{{title}}' + path: '{{year}}/{{month}}/{{day}}/{{slug}}' + preview_path: 'kronika/{{year}}/{{month}}/{{day}}/{{title}}' + preview_path_date_field: 'date' + editor: + preview: false + fields: + - label: 'Tytuł' + name: title + widget: string + required: true + + - label: 'Autor' + name: author + widget: string + required: true + + - label: 'Data' + name: date + widget: datetime + dateFormat: DD.MM.YYYY + timeFormat: false + required: true + + - label: 'Kategorie/Tagi' + name: category + widget: list + required: false + + - label: 'Zdjęcie okładki - link' + name: image + widget: string + required: false + + - label: 'Wpis' + name: body + widget: markdown + required: true |