website/static/admin/config.yml

29 lines
1.1 KiB
YAML
Raw Normal View History

2024-01-30 19:50:19 +00:00
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'
2024-01-30 19:50:19 +00:00
create: true
slug: '{{slug}}'
2024-01-30 19:50:19 +00:00
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' }
2024-01-30 19:50:19 +00:00
- { label: 'Body', name: 'body', widget: 'markdown' }