80eca1bc7c
git-subtree-dir: cms/core git-subtree-split: 2f52ec7536ee87b4f097d169e1cb0f6a85aebe84
46 lines
1.5 KiB
JavaScript
46 lines
1.5 KiB
JavaScript
// karimgabrielevarano.xyz — second consumer of openbureau-core.
|
|
// No dialog plugin; a portfolio-shaped content model.
|
|
export default {
|
|
site: 'kgva',
|
|
admins: ['karim@gabrielevarano.ch'],
|
|
plugins: [],
|
|
|
|
collections: [
|
|
{
|
|
kind: 'project', label: 'Portfolio', order: 0,
|
|
path: 'portfolio/:slug',
|
|
statKey: 'projects',
|
|
fields: [
|
|
{ name: 'title', type: 'string', required: true },
|
|
{ name: 'slug', type: 'slug' },
|
|
{ name: 'date', type: 'date' },
|
|
{ name: 'draft', type: 'bool', default: true },
|
|
{ name: 'thumbnail', type: 'image' },
|
|
{ name: 'studies', type: 'string', hint: '/studies/hslu/ba/semester_05' },
|
|
{ name: 'schools', type: 'list' },
|
|
{ name: 'degrees', type: 'list' },
|
|
{ name: 'semesters', type: 'list' },
|
|
{ name: 'video', type: 'string', hint: '/media/x.mp4' },
|
|
{ name: 'images', type: 'list', of: { src: 'image', name: 'string' } },
|
|
{ name: 'body', type: 'markdown' },
|
|
],
|
|
},
|
|
{
|
|
kind: 'page', label: 'Pages', order: 1, fallback: true,
|
|
fields: [
|
|
{ name: 'title', type: 'string', required: true },
|
|
{ name: 'description', type: 'string' },
|
|
{ name: 'layout', type: 'string' },
|
|
{ name: 'body', type: 'markdown' },
|
|
],
|
|
},
|
|
{
|
|
kind: 'section', label: 'Sections', order: 2, index: true,
|
|
fields: [
|
|
{ name: 'title', type: 'string' },
|
|
{ name: 'description', type: 'string' },
|
|
],
|
|
},
|
|
],
|
|
};
|