An open API service indexing awesome lists of open source software.

https://github.com/phucbm/nextra-blog-starter

A template for deploying Nextra blogs with built-in features like search, tags, and more.
https://github.com/phucbm/nextra-blog-starter

giscus nextjs nextra nextra-blog pagefind tailwindcss

Last synced: 2 months ago
JSON representation

A template for deploying Nextra blogs with built-in features like search, tags, and more.

Awesome Lists containing this project

README

          

# Nextra Blog Starter
screenshot

A modern, feature-rich blog template built with [Nextra](https://nextra.site).

## 🚀 Demo

- [Official Nextra Documentation](https://nextra.site)
- [Live Demo of This Template](https://nextra-blog.phucbm.com)

## Quick Start

You can deploy this template on Vercel by clicking the button below

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fphucbm%2Fnextra-blog-starter)

## Features

- [Nextra 4](https://nextra.site/docs) with Next.js 16 + React 19 + TypeScript
- [shadcn/ui](https://ui.shadcn.com/) and Tailwind CSS
- [Pagefind](https://the-guild.dev/blog/nextra-4#new-search-engine--pagefind) for search engine
- [Giscus](https://giscus.app/) for commenting system
- [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API) in Next.js App Router with [next-view-transitions](https://github.com/shuding/next-view-transitions)

## Local Development

### Clone this repository

Using the GitHub CLI:
```bash
gh repo clone phucbm/nextra-blog-starter
```

### Install
```bash
pnpm i
```

### Run the development server
```bash
pnpm dev
```

## 📝 Usage

### Adding New Posts

1. Create a new `.mdx` file in the `content` directory
2. Add your front matter at the top of the file:

```yaml
---
title: Your Post Title
date: 2025/1/30
description: A brief description of your post
tags: [ "web development", "react" ]
author: Your Name
---
```

3. Write your content in MDX format below the front matter

---

Created with ❤️ by PHUCBM

Don't forget to ⭐ this repository if you found it helpful!