Miniblog is an opinionated and extremely minimal blogging template built with Astro and Tailwind CSS, whose design is heavily inspired by jrmyphlmn.com. Incredibly easy to use and customize, you can use Miniblog as is, or add as much as you want to it.
- Blog post authoring using Markdown and MDX for component-style content
- Code block syntax highlighting with Shiki
- RSS feed and sitemap generation
- SEO optimization, with customizable OpenGraph image support
- Code formatting with Prettier
- Accessible view transitions
- Dark mode
-
Click "Use this template", the big green button on the top right, to create a new repository with this template.
-
Clone the repository:
git clone https://github.com/[YOUR_USERNAME]/[YOUR_REPO_NAME].git
cd [YOUR_REPO_NAME]
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Optionally, format your code after making changes:
npm run format
Miniblog purposely keeps itself minimal, relying on no other web framework than Astro, and keeping styling simple through Tailwind and traditional CSS.
Edit the src/consts.ts
file to update your information and site's metadata:
export const SITE_URL = "https://miniblog.nicholasly.com";
export const SITE_TITLE = "Miniblog";
export const SITE_DESCRIPTION = "Welcome to my website!";
export const EMAIL = "hello@nicholasly.com";
Add new blog posts as Markdown or MDX files in the src/content/posts/
directory. Use the following frontmatter structure:
---
title: "Lorem Ipsum"
description: "Lorem ipsum dolor sit amet."
date: "Nov 06 2024"
---
All Markdown-specific CSS styling is customizable in src/styles/global.css
:
@layer components {
article {
/* ... */
}
}
This project is open source and available under the MIT License.