Web Analytics

blog

⭐ 158 stars English by Lily-404

🌐 Language

Jimmy's Blog

A minimalist personal blog system built with Next.js 15+.

Technology Stack

Features

Project Structure

.
├── app/
│   ├── lib/           # 工具函数和数据处理
│   ├── posts/         # 博客文章
│   └── page.tsx       # 首页
├── content/
│   ├── notes/         # 随笔
│   └── posts/         # 文章
├── components/        # React 组件
├── public/            # 静态资源
└── styles/            # 全局样式

Installation and Running

git clone https://github.com/Lily-404/blog.git
cd jimmy-blog

npm install

npm run dev

npm run build

Adding a New Article

Method 1: Online Admin Panel (Recommended)

Method 2: Manually Add Files

---
title: 文章标题
date: YYYY-MM-DD
tags: ["标签1","标签2","标签3"]
---

Add Essays

---
date: YYYY-MM-DD
---

Configure Admin Dashboard

The admin dashboard uses GitHub OAuth for authentication, and only repository owners or collaborators can access it.

1. Create a GitHub OAuth App

2. Configure Environment Variables

Add the following environment variables in Vercel project settings:

3. Local Development Configuration

Create a .env.local file in the project root directory:

GITHUB_CLIENT_ID=你的Client_ID
GITHUB_CLIENT_SECRET=你的Client_Secret
GITHUB_OWNER=Lily-404
GITHUB_REPO=blog
NEXT_PUBLIC_BASE_URL=http://localhost:3000

4. Production Environment Configuration (Vercel)

In the Vercel project settings, make sure to set:

NEXT_PUBLIC_BASE_URL=https://www.jimmy-blog.top

⚠️ Note:

Deployment

The project is configured for Vercel deployment and supports automatic deployment. Simply push your code to the GitHub repository, and Vercel will automatically build and deploy it.

Advantages of Using the Admin Panel

Contribution

Issues and Pull Requests are welcome!

License

MIT License

--- Tranlated By Open Ai Tx | Last indexed: 2026-01-30 ---