A modern, feature-rich blog template built with Nextra v4.
- Nextra 4 with Next.js 15 + React 19 + TypeScript
- shadcn/ui and Tailwind CSS
- Pagefind for search engine
- Giscus for commenting system
- View Transitions API in Next.js App Router with next-view-transitions
- Node.js 18.0 or later
- pnpm
- Clone this template:
git clone https://github.com/phucbm/nextra-blog-v4-starter.git
cd nextra-blog-v4
- Install dependencies:
pnpm install
- Run the development server:
pnpm dev
- Open http://localhost:3000 in your browser to see the result.
- Create a new
.mdx
file in thecontent
directory - Add your front matter at the top of the file:
---
title: Your Post Title
date: 2025/1/30
description: A brief description of your post
tags: [ "web development", "react" ]
author: Your Name
---
- Write your content in MDX format below the front matter
- Edit
theme.config.tsx
to customize your blog's appearance and behavior - Modify styles in
styles/global.css
- Update site metadata in
pages/_app.tsx
Created with ❤️ by [Your Name]
Don't forget to ⭐ this repository if you found it helpful!