Opinionated collection of articles, films, podcasts and other artefacts related to the climate crisis.
This is the source code of the website climate.jonasparnow.com.
It’s a work in progress.
This blog is built with SvelteKit and Tailwind. Special attention was paid to minimal size, accessibility and web standards. The CMS for this blog is Pocketbase because of its lightness. It runs on Pockethost.io. The page is built as a static site and hosted on Hetzner webhosting.
Fetch the content from Pocketbase:
make fetchOnce you've created a project and installed dependencies with bun install start a development server:
bun run devTo create a production version of your app:
bun run buildEvery push to main triggers the GitHub Action in .github/workflows/deploy.yml: it fetches the current content from Pocketbase, runs the tests, builds the site and uploads build/ via FTPS. It can also be triggered manually or after content changes in Pocketbase:
gh workflow run deploy.yml
# or
gh api repos/jnsprnw/climate-blog/dispatches -f event_type=deployThe required secrets (POCKETBASE_*, CLOUDINARY_*, PUBLIC_PAGE_URL, FTP_*) are stored as repository secrets.