avecsante.app/static/admin/config.yml
2023-12-15 10:10:18 +01:00

51 lines
2.0 KiB
YAML

locale: 'fr'
backend:
name: gitea
repo: p4pillon/avecsante.app # Path to your Gitea repository
app_id: 15f9538f-2258-416a-8827-3035e8adc4df
api_root: https://forge.p4pillon.org/api/v1 # API URL of your Gitea instance
base_url: https://forge.p4pillon.org # Root URL of your Gitea instance
branch: main
media_folder: static/img
public_folder: /img
collections:
- name: 'docs'
label: 'Docs'
folder: 'content/docs'
nested: { depth: 5 }
create: true
slug: '{{slug}}'
editor:
preview: false
fields:
- { label: 'Titre', name: 'title', widget: 'string' }
- { label: 'Description', name: 'description', widget: 'string' }
- { label: 'Résumé', name: 'summary', widget: 'string' }
- { label: 'Date de publication', name: 'date', widget: 'datetime' }
- { label: 'Date de mise à jour', name: 'lastmod', widget: 'datetime' }
- { label: 'Brouillon', name: 'draft', widget: 'boolean', default: true }
- {
label: 'Menu', name: 'menu', widget: 'object', required: false, collapsed: true,
fields: [
{
label: 'docs', name: 'docs', widget: 'object', required: false, collapsed: true,
fields: [
{ label: 'Parent', name: 'parent', widget: 'string' },
{ label: 'Identifiant', name: 'identifier', widget: 'string' }
]
}
]
}
- { label: 'Poid', name: 'weight', widget: 'number', value_type: 'integer' }
- { label: 'toc', name: 'toc', widget: 'boolean', default: true }
- {
label: 'SEO', name: 'seo', widget: 'object', required: false, collapsed: true,
fields: [
{ label: 'Titre', name: 'title', widget: 'string' },
{ label: 'Description', name: 'description', widget: 'string' },
{ label: 'Canonical', name: 'canonical', widget: 'string' },
{ label: 'noindex', name: 'noindex', widget: 'boolean', default: false }
]
}
- { label: 'Body', name: 'body', widget: 'markdown' }