Welcome
This site is built with SvelteKit and mdsvex. Posts can live as Markdown under src/posts/ and are registered in src/lib/posts.ts.
Adding a local post
- Add
src/posts/your-slug.md(optional YAML frontmatter:title,date,description). - Add a matching entry to
postsinsrc/lib/posts.tswith the sameslugandpublished: true. - Open
/blog/your-slug— no separate local server is required on Vercel: everything is served over HTTP. Withnpm run dev, Vite does the same locally.
External articles
Add an entry with externalUrl (and optional source label). Visiting /blog/that-slug redirects to the external URL; the blog index links open in a new tab.
Deploying on Vercel
Set Root Directory to site. @sveltejs/adapter-vercel produces the correct output automatically.