This repository contains a blog template built using Bun, Svelte It provides an easy-to-extend foundation for creating static blogs with modern tools.
Follow these steps to set up and run the project locally.
Clone the repository:
git clone https://github.com/MrBlueBlobGuy/blog-template-bun-svelte-md.git
cd blog-template-bun-svelte-md
Install dependencies:
bun install
Start the development server with:
bun dev
The server will start, and you can view your blog at http://localhost:3000
.
To build the static files for production:
bun build
The output will be available in the dist
folder.
blog-template-bun-svelte-md/
├── src/
│ ├── lib/
| ├── posts/ # Markdown files for blog content
│ ├── routes/ # Application routes and
├── static/ # Static assets (e.g., images, icons)
├── bunfig.toml # Bun configuration file
└── README.md # Project documentation
Create a new Markdown file in the src/posts/
directory.
Add frontmatter metadata at the top of the file:
---
title: "My Awesome Post"
date: "2024-11-15"
description: "A short summary of the post."
---
Write your post content below the frontmatter.
The post will be automatically picked up and displayed on the blog.
src/styles/[style-name].css
and import it into app.css (using gruvbox by default)src/routes/
directory.Deploy your site easily with any static hosting service like:
Feel free to fork the repository, open issues, or submit pull requests to contribute to the project. All contributions are welcome!
This project is licensed under the Apache 2.0 License.