Welcome to the SvelteKit Blog Template! This project is designed to help you quickly set up a modern blog using SvelteKit and Markdown. It provides a clean and customizable foundation for creating and managing your blog posts.
- SvelteKit Framework: Leverage the power of SvelteKit for fast and reactive web applications.
- Markdown Support: Write your blog posts in Markdown for simplicity and flexibility.
- Dynamic Routing: Automatically generate routes for your blog posts based on their filenames.
- Responsive Design: Optimized for all screen sizes with a modern and clean UI.
- Customizable Components: Easily modify components to match your branding and style.
Make sure you have the following installed:
-
Clone this repository:
git clone https://github.com/your-username/sveltekit-blog-template.git cd sveltekit-blog-template
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
Your blog will be available at
http://localhost:5173
.
Blog posts are written in Markdown and stored in the src/blog/posts
directory. Each Markdown file represents a blog post. For example:
src/blog/posts/first.md
src/blog/posts/second.md
Each Markdown file can include frontmatter for metadata:
---
title: 'My First Blog Post'
date: '2025-05-30'
---
This is the content of your blog post.
To create a production build:
npm run build
You can preview the production build with:
npm run preview
Contributions are welcome! Feel free to open issues or submit pull requests to improve this template.
If you encounter any issues or have questions, feel free to reach out or open an issue on the repository.
Happy blogging!