michalvankodev-site/static/admin/config.yml

107 lines
3.6 KiB
YAML
Raw Normal View History

2019-08-09 19:15:18 +02:00
backend:
name: github
repo: michalvankodev/michalvankodev
branch: master # Branch to update (optional; defaults to master)
2020-11-08 18:38:22 +01:00
site_domain: michalvanko.dev
2020-11-20 16:27:23 +01:00
base_url: https://477w9ll6s6.execute-api.eu-central-1.amazonaws.com/master/
2019-08-09 19:15:18 +02:00
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' }
2020-01-17 20:16:46 +01:00
- {
label: 'Published',
name: 'published',
widget: 'boolean',
default: true,
}
2019-11-10 21:37:50 +01:00
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
2020-02-28 17:08:51 +01:00
- {
label: 'Featured Image',
name: 'thumbnail',
widget: 'image',
required: false,
}
2020-01-17 20:09:35 +01:00
- {
label: 'Tags',
name: 'tags',
widget: 'list',
default: ['News'],
required: false,
}
2019-11-10 21:37:50 +01:00
- { label: 'Body', name: 'body', widget: 'markdown' }
- {
label: 'Writers notes',
name: 'notes',
widget: 'markdown',
required: false,
}
2019-11-10 21:37:50 +01:00
- 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 }