config.yml 5.03 KB
Newer Older
Seth A Johnson's avatar
Seth A Johnson committed
1
2
3
4
5
6
7
media_folder: static/assets
public_folder: assets
collections:
  - name: news
    label: News
    folder: src/content/news
    create: true
8
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
Seth A Johnson's avatar
Seth A Johnson committed
9
10
11
    fields:
      - { name: templateKey, label: "Template Key", widget: hidden, default: news }
      - { name: title, label: Title }
12
      - { name: summary, label: Summary }
Seth A Johnson's avatar
Seth A Johnson committed
13
14
15
16
17
18
      - { name: date, label: Published, widget: datetime }
      - { name: body, label: Body, widget: markdown }
  - name: events
    label: Events
    folder: src/content/events
    create: true
19
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
Seth A Johnson's avatar
Seth A Johnson committed
20
21
22
    fields:
      - { name: templateKey, label: "Template Key", widget: hidden, default: event }
      - { name: title, label: Title }
23
      - { name: summary, label: Summary }
24
      - { name: date, label: Published, widget: datetime }
Seth A Johnson's avatar
Seth A Johnson committed
25
26
27
28
29
      - { name: body, label: Body, widget: markdown }
  - name: books
    label: Books
    folder: src/content/books
    create: true
30
    slug: "{{authorLastname}}-{{title}}"
Seth A Johnson's avatar
Seth A Johnson committed
31
32
33
34
    fields:
      - { name: templateKey, label: "Template Key", widget: hidden, default: book }
      - { name: title, label: Title }
      - { name: authorLastname, label: "Primary Author Last Name" }
35
      - { name: author, label: "Author(s)" }
Seth A Johnson's avatar
Seth A Johnson committed
36
37
      - { name: cover, label: Cover, widget: image }
      - { name: description, label: Description }
Seth A Johnson's avatar
Seth A Johnson committed
38
      - { name: orderOnPage, label: "Order on Front Page", widget: number }
39
40
      - { name: readLink, label: "Read Link" }
      - { name: buyLink, label: "Buy Link" }
Seth A Johnson's avatar
Seth A Johnson committed
41
42
43
  - name: pages
    label: Pages
    files:
44
45
46
      - file: src/content/home.md
        name: home
        label: Home
Seth A Johnson's avatar
Seth A Johnson committed
47
48
        editor:
          preview: false
49
50
        fields:
          - { name: templateKey, label: "Template Key", widget: hidden, default: home-page }
Seth A Johnson's avatar
tagline    
Seth A Johnson committed
51
          - name: taglineSection
52
53
54
55
            label: "Tag Line Section"
            widget: object
            fields:
              - { name: text, label: Text, widget: markdown }
Seth A Johnson's avatar
Seth A Johnson committed
56
57
58
59
60
61
62
63
          - name: newsletterSection
            label: "Newsletter Section"
            widget: object
            fields:
              - { name: heading, label: Heading }
              - { name: description, label: Description }
              - { name: url, label: "Newsletter URL" }
              - { name: buttonLabel, label: "Button Label" }
Seth A Johnson's avatar
Seth A Johnson committed
64
65
66
          - name: videoSection
            label: "Video Section"
            widget: object
Seth A Johnson's avatar
Seth A Johnson committed
67
            fields:
Seth A Johnson's avatar
Seth A Johnson committed
68
69
70
              - { name: heading, label: Heading }
              - { name: description, label: Description }
              - { name: embed, label: "Video Embed Code", widget: text }
71
72
73
74
75
76
77
          - name: catalogSection
            label: "Catalog Section"
            widget: object
            fields:
              - { name: heading, label: Heading }
              - { name: catalogImage, label: "Catalog Image", widget: image }
              - { name: catalogPdf, label: "Catalog PDF", widget: markdown }
Seth A Johnson's avatar
Seth A Johnson committed
78
79
80
81
82
83
84
          - name: mapSection
            label: "Map Section"
            widget: object
            fields:
              - { name: heading, label: Heading }
              - { name: description, label: Description }
              - { name: mapImage, label: "Map Image", widget: image }
85
      - file: "src/content/about.md"
Seth A Johnson's avatar
Seth A Johnson committed
86
87
88
89
90
91
        name: about
        label: About
        fields:
          - { name: templateKey, label: "Template Key", widget: hidden, default: about-page }
          - { name: title, label: About }
          - { name: body, label: Body, widget: markdown }
92
93
94
      - file: "src/content/authors.md"
        name: authors
        label: Authors
Seth A Johnson's avatar
Seth A Johnson committed
95
        fields:
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
          - { name: templateKey, label: "Template Key", widget: hidden, default: authors-page }
          - { name: title, label: Authors }
          - { name: body, label: Body, widget: markdown }
      - file: "src/content/join.md"
        name: join
        label: Join
        fields:
          - { name: templateKey, label: "Template Key", widget: hidden, default: join-page }
          - { name: title, label: Join }
          - { name: body, label: Body, widget: markdown }
      - file: "src/content/series.md"
        name: series
        label: Series
        fields:
          - { name: templateKey, label: "Template Key", widget: hidden, default: series-page }
          - { name: title, label: Series }
Seth A Johnson's avatar
Seth A Johnson committed
112
          - { name: body, label: Body, widget: markdown }
113
114
115
116
117
118
119
      - file: "src/content/peerreview.md"
        name: peerReview
        label: "Peer Review"
        fields:
          - { name: templateKey, label: "Template Key", widget: hidden, default: series-page }
          - { name: title, label: Series }
          - { name: body, label: Body, widget: markdown }
120
      - file: "src/content/impact.md"
Seth A Johnson's avatar
Seth A Johnson committed
121
122
123
124
125
126
127
        name: impact
        label: Impact
        fields:
          - { name: templateKey, label: "Template Key", widget: hidden, default: impact-page }
          - { name: title, label: Impact }
          - { name: readershipMapDescription, label: "Readership Map Description", widget: markdown }
          - { name: googleDataStudioDescription, label: "Google Data Studio Description", widget: markdown }