~exprez135/taliaferro

ref: 05e31bf57c4c106914580fcb54df071886984348 taliaferro/public_html/admin/config.yml -rw-r--r-- 2.5 KiB
05e31bf5 — Nate Ijams Add Netlify CMS. 10 months ago
                                                                                
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
77
78
79
80
81
82
83
84
85
86
87
backend:
  name: git-gateway
  branch: master # Branch to update (optional; defaults to master)

publish_mode: editorial_workflow

media_folder: static/uploads # This is here because it is required, our posts collection overrides it to empty
public_folder: /uploads # This is here because it is required, our posts collection overrides it to empty

display_url: https://thetaliaferrotimes.org
logo_url: https://thetaliaferrotimes.org/logo.png

collections:
  - name: posts
    label: Posts
    label_singular: Post
    folder: content/
    create: true
    path: '{{year}}/{{slug}}/index'
    media_folder: ''
    public_folder: ''
    fields:
      - label: Title
        name: title
        widget: string
      - label: Author
        name: author
        widget: string
      - label: Date
        name: date
        widget: datetime
      - label: Publish Date
        name: publishDate
        widget: datetime
      - label: Description (usually don't use - one is generated automatically)
        name: description
        widget: string
      - label: Resources
        name: resources
        widget: object
        fields:
          - label: Name
            name: name
            widget: hidden
            default: "preview"
          - label: Image
            name: src
            widget: image
      - label: Image Description
        name: imageDescription
        widget: string
      - label: Image Attribution
        name: imageAttribution
        widget: string
        default: "First Last on Unsplash"
      - label: Tags
        name: tags
        widget: select
        multiple: true
        options: ["btw-news", "column", "creative-writing", "editorial", "event", "international-news", "interview", "local-news", "national-news", "opinion", "other", "photography", "poetry", "report", "review"]
      - label: Updated? - toggle if changed on separate date
        name: updated
        widget: boolean
        default: false
      - label: Comments (do not enable)
        name: comments
        widget: hidden
        default: false
      - label: Table of Contents
        name: tableOfContents
        widget: boolean
        default: false
      - label: Description (usually don't use - one is generated automatically)
        name: description
        widget: hidden
        default: ""
      - label: pandoc (advanced use only)
        name: pandoc
        widget: hidden 
        default: false
      - label: Body
        name: body
        widget: markdown