一个现代化的双语(中英文)个人博客,基于 Next.js 构建,部署在 GitHub Pages。
A modern, bilingual (Chinese/English) personal blog built with Next.js and deployed on GitHub Pages.
# 安装依赖 Install dependencies
npm install
# 启动开发服务器 Start dev server
npm run dev
# 打开浏览器访问 Open browser
# http://localhost:3000详细说明请查看 快速启动指南 | See Quick Start Guide
- 🌍 Bilingual Support: Full Chinese and English language support
- 🌓 Dark Mode: Toggle between light and dark themes
- 📝 Markdown Blog: Write posts in Markdown/MDX with syntax highlighting
- 📱 Responsive Design: Works seamlessly on desktop, tablet, and mobile
- 🚀 Fast Performance: Static site generation for optimal loading speed
- 🎨 Modern UI: Clean and professional design
- 📊 Reading Stats: Word count and estimated reading time
- 🔗 Social Links: Easy access to GitHub, Email, and Instagram
npm installnpm run devOpen http://localhost:3000 to view the site locally.
npm run buildThe site is configured to automatically deploy to GitHub Pages. Just push to the main branch.
- Create a new
.mdor.mdxfile inposts/directory - Add frontmatter with metadata:
---
title: "Your Post Title"
date: "2025-10-22"
description: "Brief description"
lang: "en"
---
Your content here...- The post will automatically appear in the blog list
Edit the data/projects.ts file to add or modify projects.
├── app/ # Next.js app directory
├── components/ # React components
├── posts/ # Blog posts in Markdown
├── public/ # Static assets (images, PDFs)
├── lib/ # Utility functions
├── data/ # Static data files
└── locales/ # Translation files
MIT License - feel free to use this template for your own blog!