This is the source code of My Homepage.
- Svelte / SvelteKit
- TailwindCSS
- Velite
- Cloudflare Workers via
@sveltejs/adapter-cloudflare
The whole site is prerendered at build time and served as static assets from
Cloudflare's edge. Only two things run in the worker: the Accept-Language
redirect for locale-less URLs, and the RSS feeds (cached with the Cloudflare
Cache API).
Both blogs share one content pipeline (Velite):
content/posts/**— tech posts, served under/{lang}/postscontent/life-posts/**— life posts, served under/{lang}/lifecontent/categories/{posts,life}.yml— categories for each section
pnpm dev: Start the local dev server.pnpm check: Type-check the project.pnpm build: Build the site (including prerendered pages and OG images).pnpm preview: Build and preview locally in the Workers runtime.pnpm deploy: Build and deploy to Cloudflare Workers.