summaryrefslogtreecommitdiffstats
path: root/src/admin/config.yml
blob: f66818d4f09ed1cbc694104eef3ee172d2ff65fa (plain)
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
backend:
  name: git-gateway
  branch: main # Branch to update (optional; defaults to master)
media_folder: src/media
public_folder: /media
collections:
  - name: site_configuration
    label: Site configuration
    files:
      - name: contact_info
        label: Contact info
        extension: json
        file: _configuration/contact_info.json
        fields:
          - name: title
            label: Title
            widget: string
          - name: body
            label: Body text
            widget: code
            default_language: html
            allow_language_selection: false
            output_code_only: true
      - name: galleries
        label: Galleries
        extension: json
        file: _configuration/galleries.json
        fields:
          - name: galleries
            label: Galleries
            widget: list
            default: []
            fields:
              - name: summary
                label: Summary (not shown on site, only in admin)
                widget: string
              - name: display_title
                label: Displayed title (if no title, type "-")
                widget: string
              - name: column_count
                label: Column count
                widget: number
                value_type: int
                min: 1
                max: 3
                default: 2
              - name: images
                label: Images
                widget: list
                default: []
                fields:
                  - name: title
                    label: Title
                    widget: string
                  - name: src
                    label: High quality image
                    widget: image
                    allow_multiple: false
                    choose_url: true