diff --git a/static/admin/config.yml b/static/admin/config.yml index ab3a709..63e3be8 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -6,3 +6,18 @@ backend: base_url: https://code.nutfactory.org # Root URL of your Gitea instance # optional, defaults to master # branch: main +media_folder: assets +public_folder: static +collections: + - name: 'content' + label: 'Content' + folder: 'content' + create: true + slug: '{{year}}-{{month}}-{{day}}-{{slug}}' + editor: + preview: false + fields: + - { label: 'Title', name: 'title', widget: 'string' } + - { label: 'Publish Date', name: 'date', widget: 'datetime' } + - { label: 'Description', name: 'description', widget: 'string' } + - { label: 'Body', name: 'body', widget: 'markdown' }