45 lines
1.8 KiB
YAML
45 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: the admin page is served from the
|
|
# site itself (/admin/), sign-in is a browser-only PKCE OAuth2 flow
|
|
# against the box's Gitea — no token-exchange server, no client secret,
|
|
# the editor person never sees git. Every save commits straight to the
|
|
# site repository, and the Gitea Actions pipeline rebuilds + republishes
|
|
# the site.
|
|
#
|
|
# BOOTSTRAP NOTE: `app_id` (and, if the repo owner differs, `repo`) is
|
|
# filled by the deploy bootstrap — the OAuth2 application only exists
|
|
# once the Gitea instance is up. See the deploy-selfhosted skill's
|
|
# "Server-level extras (Gitea + Astro)" section.
|
|
backend:
|
|
name: gitea
|
|
repo: editor/demo-site
|
|
base_url: https://gitea.iwrote.it
|
|
api_root: https://gitea.iwrote.it/api/v1
|
|
app_id: 3bec47fe-e7c9-4b8f-9ca6-200b78c480fa
|
|
|
|
# Uploaded images live in the site's static tree (Astro copies public/
|
|
# to the build root), so editors can drop images into pages and they
|
|
# resolve on the published site.
|
|
media_folder: /site/public/uploads
|
|
public_folder: /uploads
|
|
|
|
collections:
|
|
- name: pages
|
|
label: Pages
|
|
label_singular: Page
|
|
folder: /site/src/pages
|
|
extension: md
|
|
format: yaml-frontmatter
|
|
create: false # v1: the fixed page set; the site nav is static
|
|
delete: false # removing a page would break the nav mid-build
|
|
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.
|