Landing page and blog
  • Astro 57%
  • CSS 25.1%
  • TypeScript 15.3%
  • JavaScript 2.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kamil Marut 483476ed0e
All checks were successful
Deploy site / build (push) Successful in 42s
ci: deploy page to Majinode
2026-11-12 22:45:52 +01:00
.forgejo/workflows ci: deploy page to Majinode 2026-11-12 22:45:52 +01:00
public feat: add Astro + Sveltia CMS landing page and blog 2026-11-12 22:43:12 +01:00
src feat: add Astro + Sveltia CMS landing page and blog 2026-11-12 22:43:12 +01:00
.gitignore feat: add Astro + Sveltia CMS landing page and blog 2026-11-12 22:43:12 +01:00
astro.config.mjs feat: add Astro + Sveltia CMS landing page and blog 2026-11-12 22:43:12 +01:00
bun.lock feat: add Astro + Sveltia CMS landing page and blog 2026-11-12 22:43:12 +01:00
package.json feat: add Astro + Sveltia CMS landing page and blog 2026-11-12 22:43:12 +01:00
README.md ci: deploy page to Majinode 2026-11-12 22:45:52 +01:00
tsconfig.json feat: add Astro + Sveltia CMS landing page and blog 2026-11-12 22:43:12 +01:00

Bez KonTechstu: landing page and blog

Astro (static site) + Sveltia CMS (web editor that commits to this Forgejo repo).

Development

bun install
bun run dev      # http://localhost:4321
bun run build    # output in dist/

CMS (/admin/)

  1. In Forgejo: Settings → Applications → create an OAuth2 app with Confidential unticked (the CMS uses PKCE, no secret) and these redirect URIs, one per line:

    https://bezkontechstu.pl/admin/
    http://localhost:4321/admin/
    

    They must match the address bar exactly (scheme, port, trailing slash), so open /admin/, not /admin/index.html. Add one per extra host (staging, other dev port). Put the app's client ID (not secret) in app_id in public/admin/config.yml. (Or skip OAuth and sign in with a token.)

  2. If the site and Forgejo are on different origins, allow the site origin under [cors] in Forgejo's app.ini.

Every push to main (including CMS saves) builds and uploads dist/ to Majinode via .forgejo/workflows/deploy.yml. Needs the MAJINODE_API_TOKEN Actions secret.