summaryrefslogtreecommitdiffstats
path: root/src/admin/config.yml
blob: 44786d6acce5e6e799c4619bc5076ce80560327c (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
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: site_configuration
        label: Site configuration
        extension: json
        file: _configuration/configuration.json
        fields:
          - name: contact_info
            label: Contact info
            widget: code
            default_language: html
            output_code_only: true
  - name: gallery
    label: Gallery
    identifier_name: title
    folder: _gallery
    extension: json
    create: true
    fields:
      - name: title
        label: Sorting key (alphabetically first is shown first on page)
        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_thumbnail
            label: Thumbnail image (smaller file size)
            widget: image
            allow_multiple: false
            choose_url: true
          - name: src_hiq
            label: High quality image (larger file size)
            widget: image
            allow_multiple: false
            choose_url: true