aboutsummaryrefslogtreecommitdiff
path: root/static/admin/config.yml
blob: 5f4cc4be4c4e0b1e98853db377c088b93ca01f2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
backend:
  name: gitea
  repo: foobar/guide.web.vimaire.machine.dufour.io
  base_url: http://teabag.vimaire.machine.dufour.io
  api_root: http://git.vimaire.machine.dufour.io/api/v1
  branch: main

media_folder: 'static/img/'
site_url: http://guide.web.vimaire.machine.dufour.io
display_url: http://guide.web.vimaire.machine.dufour.io
locale: 'en'

collections:
  - name: 'accueil'
    label: 'Accueil'
    editor:
      preview: false
    files:
      - name: accueil2
        label: Accueil2
        file: 'content/_index.md'
        fields:
        - label: Title
          name: title
          widget: string
        - label: Sort by
          name: sort_by
          widget: string
        - label: Body
          name: body
          widget: markdown


  - name: 'prise_en_main'
    label: 'Prise en main'
    folder: 'content/prise_en_main'
    #summary: '{{title}} ({{dirname}})'
    editor:
      preview: false
    create: true
    #nested:
    #   depth: 3
    #  summary: '{{title}}'
    fields:
      - label: Title
        name: title
        widget: string
      - label: Weight
        name: weight
        widget: number
      - label: Body
        name: body
        widget: markdown
    #meta: { path: { widget: string, label: 'Path', index_file: '_index' } }

  - name: 'formations'
    label: 'Se former'
    folder: 'content/formations'
    editor:
      preview: false
    create: true
    #summary: '{{title}} ({{dirname}})'
    #nested:
    #  depth: 3
    #  summary: '{{title}}'
    fields:
      - label: Title
        name: title
        widget: string
      - label: Weight
        name: weight
        widget: number
      - label: Body
        name: body
        widget: markdown
    #meta: { path: { widget: string, label: 'Path', index_file: '_index' } }