config.yml 4.13 KB
Newer Older
Seth A Johnson's avatar
Seth A Johnson committed
1
backend:
Seth A Johnson's avatar
Seth A Johnson committed
2
3
4
5
6
7
8
  name: gitlab
  repo: michigan-publishing/about-leverpress
  auth_type: implicit
  app_id: 3b36ad4e69326d2ddc0a722be68ce1aa60ed5d006deb6d7dc7e4281032b54a49
  api_root: https://gitlab.umich.edu/api/v4
  base_url: https://gitlab.umich.edu
  auth_endpoint: oauth/authorize
Seth A Johnson's avatar
Seth A Johnson committed
9
10
11
12
13
14
15
media_folder: static/assets
public_folder: assets
collections:
  - name: news
    label: News
    folder: src/content/news
    create: true
16
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
Seth A Johnson's avatar
Seth A Johnson committed
17
18
19
20
21
22
23
24
25
26
    fields:
      - { name: templateKey, label: "Template Key", widget: hidden, default: news }
      - { name: title, label: Title }
      - { name: date, label: Published, widget: datetime }
      - { name: image, label: Image, widget: image }
      - { name: body, label: Body, widget: markdown }
  - name: events
    label: Events
    folder: src/content/events
    create: true
27
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
Seth A Johnson's avatar
Seth A Johnson committed
28
29
30
    fields:
      - { name: templateKey, label: "Template Key", widget: hidden, default: event }
      - { name: title, label: Title }
31
      - { name: date, label: Published, widget: datetime }
Seth A Johnson's avatar
Seth A Johnson committed
32
33
34
35
36
37
      - { name: image, label: Image, widget: image }
      - { name: body, label: Body, widget: markdown }
  - name: books
    label: Books
    folder: src/content/books
    create: true
38
    slug: "{{authorLastname}}-{{title}}"
Seth A Johnson's avatar
Seth A Johnson committed
39
40
41
42
    fields:
      - { name: templateKey, label: "Template Key", widget: hidden, default: book }
      - { name: title, label: Title }
      - { name: authorLastname, label: "Primary Author Last Name" }
43
      - { name: author, label: "Author(s)" }
Seth A Johnson's avatar
Seth A Johnson committed
44
45
      - { name: cover, label: Cover, widget: image }
      - { name: description, label: Description }
Seth A Johnson's avatar
Seth A Johnson committed
46
      - { name: orderOnPage, label: "Order on Front Page", widget: number }
47
48
      - { name: readLink, label: "Read Link" }
      - { name: buyLink, label: "Buy Link" }
Seth A Johnson's avatar
Seth A Johnson committed
49
50
51
  - name: pages
    label: Pages
    files:
52
53
54
      - file: src/content/home.md
        name: home
        label: Home
Seth A Johnson's avatar
Seth A Johnson committed
55
56
        editor:
          preview: false
57
58
        fields:
          - { name: templateKey, label: "Template Key", widget: hidden, default: home-page }
Seth A Johnson's avatar
tagline    
Seth A Johnson committed
59
          - name: taglineSection
60
61
62
63
            label: "Tag Line Section"
            widget: object
            fields:
              - { name: text, label: Text, widget: markdown }
Seth A Johnson's avatar
Seth A Johnson committed
64
65
66
67
68
69
70
71
          - 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
72
73
74
          - name: videoSection
            label: "Video Section"
            widget: object
Seth A Johnson's avatar
Seth A Johnson committed
75
            fields:
Seth A Johnson's avatar
Seth A Johnson committed
76
77
78
              - { name: heading, label: Heading }
              - { name: description, label: Description }
              - { name: embed, label: "Video Embed Code", widget: text }
Seth A Johnson's avatar
Seth A Johnson committed
79
80
81
82
83
84
85
          - name: mapSection
            label: "Map Section"
            widget: object
            fields:
              - { name: heading, label: Heading }
              - { name: description, label: Description }
              - { name: mapImage, label: "Map Image", widget: image }
86
      - file: "src/content/about.md"
Seth A Johnson's avatar
Seth A Johnson committed
87
88
89
90
91
92
        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 }
93
      - file: "src/content/info.md"
Seth A Johnson's avatar
Seth A Johnson committed
94
95
96
97
98
99
        name: info
        label: Info
        fields:
          - { name: templateKey, label: "Template Key", widget: hidden, default: info-page }
          - { name: title, label: Info }
          - { name: body, label: Body, widget: markdown }
100
      - file: "src/content/impact.md"
Seth A Johnson's avatar
Seth A Johnson committed
101
102
103
104
105
106
107
        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 }