1
0
Fork
You've already forked astro-test
0
Basic Astro site op test.jelmer.org met Sveltia CMS
  • Astro 80.8%
  • TypeScript 10.5%
  • MDX 6.4%
  • CSS 1.2%
  • JavaScript 0.7%
  • Other 0.4%
Jelmer Koekkoek ce8b91406a
All checks were successful
Deploy / deploy (push) Successful in 55s
Add page collection for standalone CMS pages under /p/<slug>
Sveltia can now manage two collections:
- post: blog entries under /blog/<slug>
- page: standalone markdown pages under /p/<slug>
The /p/ prefix avoids collisions with AstroWind's fixed routes
(/about, /services, /pricing, /contact, /landing). Those landing
pages remain code-managed because they use component widgets
(Hero, Features, Steps) that don't fit a markdown field.
Sample: src/data/pages/welkom.md → /p/welkom
2026年06月01日 22:39:56 +02:00
.agents/skills Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
.forgejo/workflows Bump CI Node to 22 for Astro 6 2026年06月01日 22:21:42 +02:00
.github/workflows Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
.vscode Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
nginx Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
public Add page collection for standalone CMS pages under /p/<slug> 2026年06月01日 22:39:56 +02:00
scripts Add Astro site, Sveltia CMS admin, Forgejo deploy workflow 2026年06月01日 22:19:18 +02:00
src Add page collection for standalone CMS pages under /p/<slug> 2026年06月01日 22:39:56 +02:00
vendor Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
.dockerignore Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
.editorconfig Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
.gitignore Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
.pnpmrc Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
.prettierignore Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
.prettierrc.mjs Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
.stackblitzrc Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
AGENTS.md Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
astro.config.ts Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
CLAUDE.md Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
docker-compose.yml Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
Dockerfile Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
eslint.config.js Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
LICENSE.md Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
netlify.toml Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
package-lock.json Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
package.json Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
README.md Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
sandbox.config.json Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
tsconfig.json Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
vercel.json Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00
vscode.tailwind.json Replace minimal scaffold with AstroWind template 2026年06月01日 22:28:14 +02:00

astro-test

Test-site op https://test.jelmer.org/ , met AstroWind-template en Sveltia CMS voor niet-technische content-bewerking.

Stack

  • Astro 6 + AstroWind-template (Tailwind, hero/features/blog/services/contact, dark mode)
  • Sveltia CMS op /admin/ — moderne Decap-fork, commit direct naar main via Codeberg API (OAuth-PKCE)
  • Forgejo Actions op zelf-gehoste argo-runner — build + rsync naar Uberspace
  • Uberspace (starbase@kochab.uberspace.de) — static hosting, document-root /var/www/virtual/starbase/test.jelmer.org/
  • DNS via Cloudflare (jelmer.org zone), A+AAAA → Uberspace, DNS-only

Hosting-context: zie ~/dev/uberspace/ (Ansible) — roles/web/ + dns-records.md → "Web-subdomeinen".

Content bewerken (voor een leek)

  1. Open https://test.jelmer.org/admin/
  2. Klik "Sign in with Codeberg" → log in met je Codeberg-account
  3. Onder "Blogposts" kun je posts toevoegen of bewerken (titel, samenvatting, datum, body)
  4. Publish → wijziging staat binnen ~1-2 min live

Toegang voor een nieuwe leek: voeg ze toe als collaborator met Write-rechten op jelmerk/astro-test (Codeberg → Settings → Collaborators).

Wat Sveltia wel/niet beheert

Wie beheert
Blogposts (src/data/post/*.md) Sveltia CMS (lekenproof)
Landing-secties (hero, features, FAQ) in src/pages/*.astro Code (developer)
Globale site-config in src/config.yaml Code (developer)

Wil je dat een leek ook landing-content kan bewerken? Dan refactoren we de hero/features naar een aparte collectie in src/data/ met velden in Sveltia. Niet standaard ingericht omdat AstroWind's landing-componenten complexer zijn dan plain markdown (icon-pickers, kolom-layouts, etc.).

Lokaal ontwikkelen

npm install
npm run dev # http://localhost:4321
npm run build # → dist/

Deploy

Elke push naar main triggert .forgejo/workflows/deploy.yml: npm run buildscripts/deploy-rsync.sh rsynct dist/ naar Uberspace. Sveltia-edits committen direct naar main en lopen dus door dezelfde pipeline.