https://github.com/loke-dev/nextjs-mdx-blog-template
nextjs-mdx-blog-template.vercel.app
https://github.com/loke-dev/nextjs-mdx-blog-template
Last synced: about 1 year ago
JSON representation
nextjs-mdx-blog-template.vercel.app
- Host: GitHub
- URL: https://github.com/loke-dev/nextjs-mdx-blog-template
- Owner: loke-dev
- Created: 2025-03-29T11:52:33.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-29T22:22:38.000Z (about 1 year ago)
- Last Synced: 2025-03-29T23:19:07.048Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://nextjs-mdx-blog-template.vercel.app
- Size: 124 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js MDX Blog Template
A modern, minimalist blog template built with Next.js, MDX, and Tailwind CSS. Perfect for developers who want to share their thoughts and showcase their work.

## โจ Features
- ๐ **Next.js 15** with App Router
- โก **React 19** with Server Components
- ๐จ **Tailwind CSS 4** for styling
- ๐งฉ **shadcn/ui components** via Radix UI
- ๐ **Dark/Light mode** with next-themes
- ๐ **MDX support** for blog posts
- ๐ **SEO optimized** with metadata
- ๐ **Typed** with TypeScript
- ๐งน **Linting** with ESLint
- ๐
**Code formatting** with Prettier
- ๐ฆฎ **Accessibility** focused design
- ๐๏ธ **Performance optimized**
- ๐ฑ **Responsive** on all devices
- ๐๐ปโโ๏ธโโก๏ธ **Animations** with Motion
- ๐๏ธ **View Transitions API** support
- ๐ **Code quality** with Husky & lint-staged
## ๐งฐ Tech Stack
- [Next.js 15](https://nextjs.org/)
- [React 19](https://react.dev/)
- [TypeScript](https://www.typescriptlang.org/)
- [Tailwind CSS 4](https://tailwindcss.com/)
- [Radix UI](https://radix-ui.com/)
- [Lucide Icons](https://lucide.dev/)
- [MDX](https://mdxjs.com/) for blog posts
- [Shiki](https://shiki.style/) for code highlighting
- [Geist Font](https://vercel.com/font) for typography
## ๐ Prerequisites
- [Node.js](https://nodejs.org/en/) (v20 or higher)
- [pnpm](https://pnpm.io/) (v8 or higher)
## ๐ Getting Started
### Installation
1. Clone this repository
```bash
git clone https://github.com/loke-dev/nextjs-mdx-blog-template my-website
cd my-website
```
2. Install dependencies
```bash
pnpm install
```
3. Start the development server
```bash
pnpm dev
```
4. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## ๐ Project Structure
```
/
โโโ public/ # Static assets
โโโ src/
โ โโโ app/ # App router pages
โ โโโ components/ # React components
โ โ โโโ mdx/ # MDX-specific components
โ โ โโโ ui/ # UI components (shadcn)
โ โโโ lib/ # Utility functions
โ โโโ posts/ # MDX blog posts
โ โโโ styles/ # Global styles
โ โโโ types/ # TypeScript types
โโโ .eslintrc.js # ESLint configuration
โโโ .prettierrc # Prettier configuration
โโโ next.config.ts # Next.js configuration
โโโ tailwind.config.ts # Tailwind CSS configuration
โโโ tsconfig.json # TypeScript configuration
```
## ๐ Usage
### Creating Blog Posts
Add new MDX files to the `src/posts` directory:
```mdx
---
title: My New Post
date: 2024-03-25
description: A description of my new post
---
# My New Post
This is the content of my post written in MDX.
```
### Customization
- Update site metadata in `src/app/layout.tsx`
- Modify the theme in `src/styles/globals.css`
- Add or modify components in `src/components`
- Update pages in `src/app` directory
## ๐ ๏ธ Development
```bash
# Run development server
pnpm dev
# Build for production
pnpm build
# Start production server
pnpm start
# Run linting
pnpm lint
# Format code
pnpm format
```
## ๐ข Deployment
This template is optimized for deployment on Vercel, but can be deployed on any platform that supports Next.js.
[](https://vercel.com/new/clone?repository-url=https://github.com/loke-dev/nextjs-mdx-blog-template)
## ๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
## ๐ Acknowledgements
- [Next.js](https://nextjs.org/) team for the incredible framework
- [Vercel](https://vercel.com/) for hosting and deployment
- [shadcn/ui](https://ui.shadcn.com/) for the beautiful components
- [Tailwind CSS](https://tailwindcss.com/) for the utility-first CSS framework