website/static/admin/config.yml

33 lines
1.2 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: 'text' }
- label: 'Tags'
name: 'tags'
widget: 'list'
field: { label: 'tag', name: 'Tag', widget: 'string' }
- { label: 'Date', name: 'date', widget: 'datetime' }
- { label: 'Body', name: 'body', widget: 'markdown' }