Files
Keith 840e1fbe1c
deploy / build-and-publish (push) Successful in 41s
move from iwrote.it to appz-toolkit
2026-12-01 10:21:51 +01:00

120 lines
5.7 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/validation-lab-site
base_url: https://gitea.appz-toolkit.eu
api_root: https://gitea.appz-toolkit.eu/api/v1
app_id: 1824afcc-8bf2-4d16-b741-83f122485ab4
# 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: Pilot banner label (e.g. Pilot stage), name: pilot_label, widget: string, required: false }
- label: Pilot banner text
name: pilot_text
widget: text
required: false
hint: Shown under the hero when filled — leave EMPTY to show no banner
- 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: Link (page path, e.g. /for-founders/ — makes the whole card a link), name: link, widget: string, required: false }
- { 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: Pricing model question (founders page), name: price_model_question, widget: string, required: false }
- label: Pricing models (each carries its own price ranges)
name: price_models
widget: list
required: false
fields:
- { label: Model key (lowercase_with_underscores), name: key, widget: string }
- { label: Label shown to the visitor, name: label, widget: string }
- label: Price options for this model
name: options
widget: list
fields:
- { label: Option key (e.g. eur25), name: key, widget: string }
- { label: Label (e.g. €25), name: label, widget: string }
- label: Price questions (founders page, optional — shown one at a time after a model is picked)
name: price_groups
widget: list
required: false
fields:
- { label: Question key (lowercase_with_underscores), name: key, widget: string }
- { label: Question shown to the visitor, name: heading, widget: string }
- { label: Price checklist heading, name: price_title, widget: string, required: false }
- { label: Price checklist note, name: price_note, widget: text, required: false }
- label: Tracked checklist (hubs roadmap, founders what-matters — 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: Capabilities heading, name: capabilities_title, widget: string, required: false }
- { label: Capabilities note, name: capabilities_note, widget: text, required: false }
- { label: Request Access button label, name: capabilities_cta, widget: string, required: false, hint: Scroll link under the checklist; leave EMPTY to show no button }
- { label: Pricing note, name: pricing_note, widget: text, required: false }
- label: Body
name: body
widget: richtext
required: false
hint: The page's long-form content — optional. Everything here is published as the page's main content; a page with no body (like the Home page) saves and publishes fine.