2019-08-09 19:15:18 +02:00
|
|
|
backend:
|
|
|
|
name: github
|
|
|
|
repo: michalvankodev/michalvankodev
|
|
|
|
branch: master # Branch to update (optional; defaults to master)
|
|
|
|
|
2019-11-10 21:37:50 +01:00
|
|
|
media_folder: 'static/images/uploads' # Media files will be stored in the repo under images/uploads
|
|
|
|
public_folder: '/images/uploads' # The src attribute for uploaded media will begin with /images/uploads
|
2019-08-09 19:15:18 +02:00
|
|
|
|
|
|
|
collections:
|
2019-11-10 21:37:50 +01:00
|
|
|
- name: 'blog' # Used in routes, e.g., /admin/collections/blog
|
|
|
|
label: 'Blog' # Used in the UI
|
|
|
|
folder: '_posts/blog' # The path to the folder where the documents are stored
|
2019-08-09 19:15:18 +02:00
|
|
|
create: true # Allow users to create new documents in this collection
|
2019-11-10 21:37:50 +01:00
|
|
|
slug: '{{year}}-{{month}}-{{day}}-{{slug}}' # Filename template, e.g., YYYY-MM-DD-title.md
|
2019-08-09 19:15:18 +02:00
|
|
|
fields: # The fields for each document, usually in front matter
|
2019-11-10 21:37:50 +01:00
|
|
|
- { label: 'Layout', name: 'layout', widget: 'hidden', default: 'blog' }
|
|
|
|
- { label: 'Title', name: 'title', widget: 'string' }
|
|
|
|
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
|
|
|
- { label: 'Featured Image', name: 'thumbnail', widget: 'image' }
|
|
|
|
- { label: 'Tags', name: 'tags', widget: 'list', default: ['News'] }
|
|
|
|
- { label: 'Body', name: 'body', widget: 'markdown' }
|
|
|
|
- name: 'pages'
|
|
|
|
label: 'Pages'
|
2019-08-10 17:13:04 +02:00
|
|
|
files:
|
2019-11-10 21:37:50 +01:00
|
|
|
- label: 'Portfolio'
|
|
|
|
name: 'portfolio'
|
|
|
|
file: '_pages/portfolio.md'
|
2019-08-10 17:13:04 +02:00
|
|
|
fields:
|
|
|
|
- { label: Title, name: title, widget: string }
|
2019-08-16 19:57:36 +02:00
|
|
|
- { label: Body, name: body, widget: markdown }
|
2019-11-10 21:37:50 +01:00
|
|
|
- {
|
|
|
|
label: Work history prelude,
|
|
|
|
name: work_history_prelude,
|
|
|
|
widget: markdown,
|
|
|
|
}
|
2019-08-16 20:35:41 +02:00
|
|
|
- label: Work history
|
|
|
|
name: work_history
|
|
|
|
widget: list
|
|
|
|
fields:
|
|
|
|
- { label: Company name, name: name, widget: string }
|
|
|
|
- { label: Description, name: description, widget: markdown }
|
2019-08-10 17:13:04 +02:00
|
|
|
- label: Projects
|
|
|
|
name: projects
|
|
|
|
widget: list
|
|
|
|
fields:
|
2019-08-16 20:35:41 +02:00
|
|
|
- { label: Project name, name: name, widget: string }
|
2019-11-10 21:37:50 +01:00
|
|
|
- {
|
|
|
|
label: Displayed,
|
|
|
|
name: displayed,
|
|
|
|
widget: boolean,
|
|
|
|
default: true,
|
|
|
|
}
|
2019-08-10 17:13:04 +02:00
|
|
|
- { label: Description, name: description, widget: markdown }
|
2019-08-16 19:57:36 +02:00
|
|
|
- label: Image
|
|
|
|
name: image
|
|
|
|
widget: object
|
2019-11-10 21:37:50 +01:00
|
|
|
fields:
|
|
|
|
- {
|
|
|
|
label: Source,
|
|
|
|
name: source,
|
|
|
|
widget: image,
|
|
|
|
required: false,
|
|
|
|
}
|
|
|
|
- {
|
|
|
|
label: Image description,
|
|
|
|
name: image_description,
|
|
|
|
widget: string,
|
|
|
|
required: false,
|
|
|
|
}
|
2019-08-18 18:15:14 +02:00
|
|
|
- label: Education
|
|
|
|
name: education
|
|
|
|
widget: list
|
|
|
|
fields:
|
|
|
|
- { label: Institution, name: name, widget: string }
|
2019-11-10 21:37:50 +01:00
|
|
|
- {
|
|
|
|
label: Displayed,
|
|
|
|
name: displayed,
|
|
|
|
widget: boolean,
|
|
|
|
default: true,
|
|
|
|
}
|
2019-08-18 18:15:14 +02:00
|
|
|
- { label: Description, name: description, widget: markdown }
|