about summary refs log tree commit diff
path: root/static/admin/config.yml
blob: 6abbadb1f8a4e1deaa1c4d28c7ad21233a106a63 (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: nojs

publish_mode: editorial_workflow
site_url: https://nojs--api-puszcza.netlify.app
logo_url: /19pdh.png
locale: 'pl'

media_folder: 'wpisy/assets'
public_folder: '/assets'

collections:
  - name: posts
    label: 'Wpisy'
    label_singular: 'wpis'
    folder: 'wpisy/kronika'
    slug: '{{title}}'
    path: 'kronika/{{year}}/{{month}}/{{day}}/{{slug}}'
    preview_path: 'kronika/{{year}}/{{month}}/{{day}}/{{title}}'
    preview_path_date_field: 'date'
    create: true
    editor:
      preview: true
    fields:
      - label: 'Tytuł'
        name: title
        widget: string
        required: true

      - label: 'Kategorie/Tagi'
        name: category
        widget: list
        required: false

      - label: 'Wpis'
        name: body
        widget: markdown
        required: true
  - name: "pages"
    label: "Strony"
    files:
      - label: "Do pobrania"
        name: "download"
        file: "wpisy/do-pobrania.md"
        fields:
          - label: "Treść"
            name: "body"
            widget: "markdown"

      - label: "Kontakt"
        name: "contact"
        file: "wpisy/kontakt.md"
        fields:
          - label: "Treść"
            name: "body"
            widget: "markdown"