website/static/admin/config.yml
Hoernschen 736ea6fc1f
All checks were successful
build-to-pages / build (push) Successful in 2m10s
build-to-pages / push (push) Successful in 13s
FIX admin collection config
2024-06-19 23:56:53 +02:00

30 lines
1.1 KiB
YAML

backend:
name: gitea
repo: melicita/website # Path to your Gitea repository
app_id: ecd1dad7-b95c-4ba3-b625-a96ec1ddd9c5 # The Client ID provided by Gitea
api_root: https://code.nutfactory.org/api/v1 # API URL of your Gitea instance
base_url: https://code.nutfactory.org # Root URL of your Gitea instance
branch: main
media_folder: assets/images
public_folder: /images
collections:
- name: 'project'
label: 'Project'
folder: 'content/projects'
create: true
slug: '{{slug}}'
editor:
preview: false
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- label: 'Image'
name: 'image'
widget: 'object'
fields:
- { label: 'Image', name: 'url', widget: 'image' }
- { label: 'Alt', name: 'alt', widget: 'string' }
- { label: 'Caption', name: 'caption', widget: 'string' }
- { label: 'Overview', name: 'overview', widget: 'string' }
- { label: 'Tags', name: 'tags', widget: 'list' }
- { label: 'Date', name: 'date', widget: 'datetime' }
- { label: 'Body', name: 'body', widget: 'markdown' }