Files
site/dist/admin/config.yml
T

89 lines
3.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
nested:
depth: 2
summary: "{{title}}"
extension: md
format: yaml-frontmatter
create: true # pages land in src/pages/<locale>/ and appear in the nav (built from the 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 (also the page <title> and h1), name: title, widget: string }
- { label: Meta description (search engines), name: description, widget: string, required: false }
- { label: Layout, name: layout, widget: hidden, default: ../layouts/Site.astro }
- { label: Hero headline, name: hero_headline, widget: string, required: false }
- { label: Hero subline, name: hero_sub, widget: text, required: false }
- label: Hero CTA to the founders page
name: cta_founders
widget: string
required: false
- label: Hero CTA to the hubs page
name: cta_hubs
widget: string
required: false
- label: Cards section (optional)
name: value_props
widget: list
required: false
fields:
- { label: Heading, name: heading, widget: string }
- { label: Text, name: text, widget: text }
- { label: Cards section heading, name: value_props_title, widget: string, required: false }
- label: Journey steps (optional)
name: journey
widget: list
required: false
fields:
- { label: Step title, name: title, widget: string }
- { label: Step text (optional), name: text, widget: string, required: false }
- { label: Journey heading, name: journey_title, widget: string, required: false }
- { label: Journey note, name: journey_note, widget: text, required: false }
- label: Capability blocks (hubs page, optional)
name: capabilities
widget: list
required: false
fields:
- { label: Key (lowercase_with_underscores), name: key, widget: string }
- { label: Heading, name: heading, widget: string }
- { label: Text, name: text, widget: text }
- { label: CTA label, name: cta, widget: string }
- { label: Capabilities heading, name: capabilities_title, widget: string, required: false }
- { label: Capabilities note, name: capabilities_note, widget: text, required: false }
- { label: Pricing note, name: pricing_note, widget: text, required: false }
- label: Body
name: body
widget: richtext
hint: The page's long-form content. Everything here is published as the page's main content.