Skip to content

Try to get netlify to work for my current config #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 36 additions & 8 deletions admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ backend:
branch: master
base_url: https://github-oauth2.orionrobots.co.uk
# This line should *not* be indented (for draft/review/publish workflow)
# publish_mode: editorial_workflow
# publish_mode: editorial_workflow
media_folder: "galleries"
collections:
- name: "blog"
label: "Blog"
folder: "_posts"
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
path: "{{year}}/{{slug}}"
fields:
- label: "Layout"
name: "layout"
widget: "hidden"
default: "post"
- label: "Title"
name: "title"
widget: "string"
Expand All @@ -32,12 +29,43 @@ collections:
widget: "list"
summary: "{{fields.tag}}"
field: { label: "Tag", name: "tag", widget: "string" }
- label: "Category"
name: "category"
- label: "Thumbnail"
name: "thumbnail"
required: false
widget: "image"
allow_multiple: false
- label: "Body"
name: "body"
widget: "markdown"
view_groups:
- label: Year
field: date
# groups items based on the value matched by the pattern
pattern: \d{4}
- name: "blog_sub"
label: "Blog in subfolder"
folder: "_posts"
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
path: "{{year}}/{{slug}}/{{slug}}"
create: true
fields:
- label: "Title"
name: "title"
widget: "string"
- label: "Publish Date"
name: "date"
widget: "datetime"
- label: "Description"
name: "description"
widget: "string"
required: false
- label: "Tags"
name: "tags"
widget: "list"
summary: "{{fields.tag}}"
field: { label: "Tag", name: "tag", widget: "string" }
- label: "Thumbnail"
name: "thumb"
name: "thumbnail"
required: false
widget: "image"
allow_multiple: false
Expand Down