A minimal, beautiful blog template built with SvelteKit, MDsveX, and Tailwind CSS.
@tailwindcss/typography/rss.xml# Clone the repo
git clone https://github.com/kszongic/sveltekit-blog-starter.git
cd sveltekit-blog-starter
# Install dependencies
npm install
# Start dev server
npm run dev
Open http://localhost:5173 to see your blog.
src/
āāā posts/ # Markdown blog posts
ā āāā hello-world.md
ā āāā getting-started.md
āāā routes/
ā āāā +layout.svelte # Root layout
ā āāā +page.svelte # Homepage (recent posts)
ā āāā blog/ # Blog listing + [slug] pages
ā āāā about/ # About page
ā āāā rss.xml/ # RSS feed endpoint
āāā lib/
āāā components/ # Header, Footer, BlogLayout
āāā posts.js # Post loading utility
Add a .md file to src/posts/:
---
title: My Post Title
description: A brief description for SEO and previews
date: '2024-02-01'
tags:
- webdev
- svelte
published: true
layout: blog
---
Your content here. **Markdown** and Svelte components both work!
Set published: false to hide a draft.
src/app.csstailwind.config.jssrc/lib/components/+layout.svelte and rss.xml/+server.jsWorks with any SvelteKit adapter:
npm run build
Deploy to Vercel, Netlify, Cloudflare Pages, or any Node.js host.
MIT ā use it however you like.
ā Star this repo if you find it useful!