Files
2026-11-21 08:32:35 +01:00

46 lines
1.8 KiB
YAML

# yaml-language-server: $schema=https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json
# The CMS for the editable-site flow. THIS REPO IS THE SITE REPO: when
# pushed to the app's Gitea (the deploy-selfhosted skill's E5), its root
# is the repo root — the paths below are repo-root-relative with NO
# site/ prefix.
#
# Sign-in is a browser-only PKCE OAuth2 flow against the app's Gitea —
# no token-exchange server, no client secret. Every save commits to THIS
# repository; the Gitea Actions pipeline (.gitea/workflows/) rebuilds
# and republishes the site.
#
# BOOTSTRAP: app_id (and, if the repo owner differs, repo) are filled by
# the deploy bootstrap — the OAuth2 application only exists once the
# Gitea instance is up. See the deploy-selfhosted skill's E4.
backend:
name: gitea
repo: editor/site
base_url: https://gitea.validationlab.eu
api_root: https://gitea.validationlab.eu/api/v1
app_id: 11c9cc34-20b4-435f-ba8c-dbafd3c888b1
# Uploaded images live in the static tree (Astro copies public/ to the
# build root) so they resolve on the published site.
media_folder: /public/uploads
public_folder: /uploads
collections:
- name: pages
label: Pages
label_singular: Page
folder: /src/pages
extension: md
format: yaml-frontmatter
create: true # pages land in src/pages and appear in the nav (it is built from this folder)
delete: false # a page (the Home page above all) cannot be deleted from the CMS
slug: "{{slug}}"
identifier_field: title
summary: "{{title}}"
fields:
- { label: Title, name: title, widget: string }
- { label: Layout, name: layout, widget: hidden, default: ../layouts/Site.astro }
- label: Body
name: body
widget: richtext
hint: The page content, edited visually. Everything here is published as the page's main content.