51a94b85d3
kgva can now be edited through openbureau-core instead of Decap: a small Node CMS (git subtree at cms/core) with a schema-driven editor at /admin, file-based login (no Supabase/Postgres), Markdown on disk. cms/kgva.config.js models the content (portfolio/pages/sections); docker-compose builds the core image (Hugo 0.163.3, no VITE_SUPABASE_URL → local-auth admin) and mounts the repo as the site. seed an admin via cms/seed-admin.mjs; deploy/provision-lxc.sh + ADMIN.md updated. Verified DB-less end-to-end on real content (staged): local login → schema-driven editor → 42 entries (de/en) → stats → create/preview/cleanup; unknown frontmatter (image galleries) preserved on save. The LIVE static site (CT130 timer→hugo→nginx) is unaffected — hugo ignores cms/; the CMS is dormant until provisioned. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
49 lines
1.8 KiB
JavaScript
49 lines
1.8 KiB
JavaScript
// kgva site config — consumed by openbureau-core (vendored at cms/core) via
|
|
// CMS_CONFIG. DB-less: auth 'local' (file users), no plugins. Bilingual content
|
|
// (.de.md) lists as separate entries (edit each language file on its own).
|
|
export default {
|
|
site: 'kgva',
|
|
auth: 'local',
|
|
admins: ['karim@gabrielevarano.ch'],
|
|
plugins: [],
|
|
|
|
collections: [
|
|
{
|
|
kind: 'project', label: 'Portfolio', order: 0,
|
|
path: 'portfolio/:slug', statKey: 'portfolio',
|
|
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: 'video', type: 'string', hint: '/media/x.mp4' },
|
|
{ name: 'studies', type: 'string', hint: '/studies/hslu/ba/semester_05' },
|
|
{ name: 'schools', type: 'list' },
|
|
{ name: 'degrees', type: 'list' },
|
|
{ name: 'semesters', type: 'list' },
|
|
{ name: 'body', type: 'markdown' },
|
|
// NB: image galleries (`images:`) and any other frontmatter not modelled
|
|
// here are PRESERVED on save (the editor keeps unknown keys).
|
|
],
|
|
},
|
|
{
|
|
kind: 'page', label: 'Seiten', order: 1, fallback: true, statKey: 'pages',
|
|
fields: [
|
|
{ name: 'title', type: 'string', required: true },
|
|
{ name: 'description', type: 'string' },
|
|
{ name: 'layout', type: 'string' },
|
|
{ name: 'body', type: 'markdown' },
|
|
],
|
|
},
|
|
{
|
|
kind: 'section', label: 'Index-Seiten', order: 2, index: true, statKey: 'sections',
|
|
fields: [
|
|
{ name: 'title', type: 'string' },
|
|
{ name: 'description', type: 'string' },
|
|
{ name: 'body', type: 'markdown' },
|
|
],
|
|
},
|
|
],
|
|
};
|