init
This commit is contained in:
99
content/about/en.mdx
Normal file
99
content/about/en.mdx
Normal file
@@ -0,0 +1,99 @@
|
||||
---
|
||||
title: About
|
||||
description: About Next Forge - Multilingual Next.js 16 Starter
|
||||
lastUpdated: 2025-02-19
|
||||
---
|
||||
|
||||
> Update date: 2025-02-19
|
||||
|
||||
# About Next Forge
|
||||
|
||||
Next Forge is a feature-rich Next.js 16 multilingual starter template designed to help developers quickly build globally-ready websites. It comes with built-in i18n support, modern UI design, dark/light theme toggling, responsive layout, MDX blog system, SEO optimization, and integrated analytics tools.
|
||||
|
||||
## ✨ Key Features
|
||||
|
||||
- 🌐 **Built-in i18n Support**: Supports English, Chinese, and Japanese out of the box, making it easy to create multilingual websites.
|
||||
- 🎨 **Modern UI Design**: Clean and modern UI powered by Tailwind CSS.
|
||||
- 🌙 **Dark/Light Theme Toggle**: Allows users to switch between dark and light themes effortlessly.
|
||||
- 📱 **Responsive Layout**: Fully responsive design ensures a great experience on both mobile and desktop devices.
|
||||
- 📝 **MDX Blog System**: Write blog posts using MDX for enhanced flexibility and power.
|
||||
- 🔍 **SEO Optimization**: Comprehensive SEO features including automatic sitemap.xml generation, robots.txt configuration, and optimized metadata.
|
||||
- 📊 **Analytics Integration**: Integrated with Google Analytics, Baidu Analytics, Google Adsense, and Vercel Analytics for easy tracking and insights.
|
||||
- 🌿 **Eco-Friendly Performance**: Achieved A+ rating on [Website Carbon](https://www.websitecarbon.com/website/nextforge-dev/), making it one of the most energy-efficient websites.
|
||||
|
||||
## 🚀 Quick Start
|
||||
|
||||
1. Clone the repository:
|
||||
```bash
|
||||
git clone https://github.com/weijunext/nextjs-starter.git
|
||||
```
|
||||
|
||||
2. Install dependencies:
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
3. Copy environment variables:
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
4. Start the development server:
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Visit [http://localhost:3000](http://localhost:3000) to view your application.
|
||||
|
||||
## ⚙️ Configuration
|
||||
|
||||
1. **Basic Setup**:
|
||||
- Edit `config/site.ts` to configure website information.
|
||||
- Update icons and logo in the `public/` directory.
|
||||
- Configure `app/sitemap.ts` and `app/robots.ts`.
|
||||
|
||||
2. **i18n Setup**:
|
||||
- Add or modify language files in `i18n/messages/`.
|
||||
- Configure supported languages in `i18n/routing.ts`.
|
||||
- Set up i18n routing in `middleware.ts`.
|
||||
|
||||
## 📝 Content Management
|
||||
|
||||
### Blog Posts
|
||||
Create MDX files in `blog/[locale]` with the following format:
|
||||
````
|
||||
|
||||
---
|
||||
title: Post Title
|
||||
description: Post Description
|
||||
image: /image.png
|
||||
slug: /url-path
|
||||
tags: tag1,tag2
|
||||
date: 2025-02-20
|
||||
visible: published
|
||||
pin: true
|
||||
---
|
||||
|
||||
Post content...
|
||||
````
|
||||
|
||||
### Static Pages
|
||||
Manage static page content in `content/[page]/[locale].mdx`.
|
||||
|
||||
## 📄 License
|
||||
|
||||
Next Forge is licensed under the MIT License, allowing you to freely use, modify, and distribute the template.
|
||||
|
||||
## 🤝 Contributing
|
||||
|
||||
We welcome issues and pull requests! Your contributions help us improve this project.
|
||||
|
||||
## About the Author
|
||||
|
||||
A Next.js full-stack specialist offering expert services in project development, performance optimization, and SEO improvement.
|
||||
|
||||
For consulting and training opportunities, reach out at weijunext@gmail.com
|
||||
|
||||
- [Github](https://github.com/weijunext)
|
||||
- [Bento](https://bento.me/weijunext)
|
||||
- [Twitter/X](https://twitter.com/judewei_dev)
|
||||
99
content/about/ja.mdx
Normal file
99
content/about/ja.mdx
Normal file
@@ -0,0 +1,99 @@
|
||||
---
|
||||
title: サイトについて
|
||||
description: Next Forge - 多言語対応 Next.js 16 スターターについて
|
||||
lastUpdated: 2025-02-19
|
||||
---
|
||||
|
||||
> 更新日: 2025-02-19
|
||||
|
||||
# Next Forge について
|
||||
|
||||
Next Forge は、グローバル対応のウェブサイトを素早く構築するための、機能豊富な Next.js 16 多言語スターターテンプレートです。多言語対応、モダンな UI デザイン、ダーク/ライトテーマ切り替え、レスポンシブデザイン、MDX ブログシステム、SEO 最適化、アナリティクス統合など、多くの機能を備えています。
|
||||
|
||||
## ✨ 主な機能
|
||||
|
||||
- 🌐 **多言語対応**: 英語、中国語、日本語をサポートし、多言語サイトを簡単に構築できます。
|
||||
- 🎨 **モダンな UI デザイン**: Tailwind CSS を利用したクリーンでモダンな UI デザイン。
|
||||
- 🌙 **ダーク/ライトテーマ切り替え**: ユーザーが簡単にダークモードとライトモードを切り替えられる機能。
|
||||
- 📱 **レスポンシブデザイン**: モバイルとデスクトップの両方で最適なユーザー体験を提供します。
|
||||
- 📝 **MDX ブログシステム**: MDX を使用してブログ記事を執筆し、柔軟性とパワーを兼ね備えています。
|
||||
- 🔍 **SEO 最適化**: sitemap.xml の自動生成、robots.txt の設定、最適化されたメタデータなど、包括的な SEO 機能を搭載。
|
||||
- 📊 **アナリティクス統合**: Google Analytics、Baidu Analytics、Google Adsense、Vercel Analytics を統合し、簡単にデータを追跡できます。
|
||||
- 🌿 **エコフレンドリーなパフォーマンス**: [Website Carbon](https://www.websitecarbon.com/website/nextforge-dev/) で A+ 評価を獲得し、最もエネルギー効率の良いウェブサイトの一つです。
|
||||
|
||||
## 🚀 クイックスタート
|
||||
|
||||
1. リポジトリのクローン:
|
||||
```bash
|
||||
git clone https://github.com/weijunext/nextjs-starter.git
|
||||
```
|
||||
|
||||
2. 依存関係のインストール:
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
3. 環境変数の設定:
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
4. 開発サーバーの起動:
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
[http://localhost:3000](http://localhost:3000) にアクセスしてアプリケーションを確認できます。
|
||||
|
||||
## ⚙️ 設定方法
|
||||
|
||||
1. **基本設定**:
|
||||
- `config/site.ts` を編集してウェブサイト情報を設定します。
|
||||
- `public/` ディレクトリ内のアイコンとロゴを更新します。
|
||||
- `app/sitemap.ts` と `app/robots.ts` を設定します。
|
||||
|
||||
2. **多言語設定**:
|
||||
- `i18n/messages/` 内の言語ファイルを追加または編集します。
|
||||
- `i18n/routing.ts` でサポートする言語を設定します。
|
||||
- `middleware.ts` で多言語ルーティングを設定します。
|
||||
|
||||
## 📝 コンテンツ管理
|
||||
|
||||
### ブログ投稿
|
||||
`blog/[locale]` ディレクトリに以下のフォーマットで MDX ファイルを作成します:
|
||||
````
|
||||
|
||||
---
|
||||
title: 投稿タイトル
|
||||
description: 投稿の説明
|
||||
image: /image.png
|
||||
slug: /url-path
|
||||
tags: tag1,tag2
|
||||
date: 2025-02-20
|
||||
visible: published
|
||||
pin: true
|
||||
---
|
||||
|
||||
投稿内容...
|
||||
````
|
||||
|
||||
### 静的ページ
|
||||
`content/[page]/[locale].mdx` で静的ページのコンテンツを管理します。
|
||||
|
||||
## 📄 ライセンス
|
||||
|
||||
Next Forge は MIT ライセンスで提供されており、自由に使用、変更、配布することができます。
|
||||
|
||||
## 🤝 コントリビューション
|
||||
|
||||
Issue や Pull Request を歓迎します!皆さんの貢献がこのプロジェクトをより良いものにします。
|
||||
|
||||
## 作者について
|
||||
|
||||
Next.js のフルスタックスペシャリストとして、プロジェクト開発、パフォーマンス最適化、SEO 改善のエキスパートサービスを提供しています。
|
||||
|
||||
コンサルティングやトレーニングの機会については、weijunext@gmail.com までご連絡ください。
|
||||
|
||||
- [Github](https://github.com/weijunext)
|
||||
- [Bento](https://bento.me/weijunext)
|
||||
- [Twitter/X](https://twitter.com/judewei_dev)
|
||||
99
content/about/zh.mdx
Normal file
99
content/about/zh.mdx
Normal file
@@ -0,0 +1,99 @@
|
||||
---
|
||||
title: 关于
|
||||
description: 关于 Next Forge 多语言启动模板
|
||||
lastUpdated: 2025-02-19
|
||||
---
|
||||
|
||||
> 更新日期:2025-02-19
|
||||
|
||||
# 关于 Next Forge
|
||||
|
||||
Next Forge 是一个功能完备的 Next.js 16 多语言启动模板,旨在帮助开发者快速构建面向全球的网站。它内置了多语言支持、现代 UI 设计、深色/浅色主题切换、响应式布局、MDX 博客系统、SEO 优化以及多种统计分析工具。
|
||||
|
||||
## ✨ 主要特性
|
||||
|
||||
- 🌐 **多语言支持**:内置中文、英文、日语的国际化支持,轻松实现多语言网站。
|
||||
- 🎨 **现代 UI 设计**:基于 Tailwind CSS 的现代 UI 设计,简洁美观。
|
||||
- 🌙 **深色/浅色主题切换**:支持用户自由切换深色和浅色主题。
|
||||
- 📱 **响应式布局**:适配各种设备,确保在移动端和桌面端都有良好的用户体验。
|
||||
- 📝 **MDX 博客系统**:支持使用 MDX 编写博客文章,灵活且强大。
|
||||
- 🔍 **SEO 优化**:内置完整的 SEO 优化方案,包括自动生成 sitemap.xml 和 robots.txt。
|
||||
- 📊 **统计分析**:集成 Google Analytics、Baidu Analytics、Google Adsense 和 Vercel Analytics,方便进行数据追踪。
|
||||
- 🌿 **环保性能**:在 [Website Carbon](https://www.websitecarbon.com/website/nextforge-dev/) 上获得 A+ 评级,成为最节能的网站之一。
|
||||
|
||||
## 🚀 快速开始
|
||||
|
||||
1. 克隆项目:
|
||||
```bash
|
||||
git clone https://github.com/weijunext/nextjs-starter.git
|
||||
```
|
||||
|
||||
2. 安装依赖:
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
3. 复制环境变量文件:
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
4. 启动开发服务器:
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
访问 [http://localhost:3000](http://localhost:3000) 查看你的应用。
|
||||
|
||||
## ⚙️ 配置
|
||||
|
||||
1. **基础配置**:
|
||||
- 修改 `config/site.ts` 配置网站信息。
|
||||
- 更新 `public/` 下的图标和 logo。
|
||||
- 配置 `app/sitemap.ts` 和 `app/robots.ts`。
|
||||
|
||||
2. **多语言配置**:
|
||||
- 在 `i18n/messages/` 下添加或修改语言文件。
|
||||
- 在 `i18n/routing.ts` 中配置支持的语言。
|
||||
- 在 `middleware.ts` 中配置多语言路由。
|
||||
|
||||
## 📝 内容管理
|
||||
|
||||
### 博客文章
|
||||
在 `blog/[locale]` 目录下创建 MDX 文件,支持以下格式:
|
||||
```markdown
|
||||
---
|
||||
title: 文章标题
|
||||
description: 文章描述
|
||||
image: /image.png
|
||||
slug: /url-path
|
||||
tags: tag1,tag2
|
||||
date: 2025-02-20
|
||||
visible: published
|
||||
pin: true
|
||||
---
|
||||
|
||||
文章内容...
|
||||
```
|
||||
|
||||
### 静态页面
|
||||
在 `content/[page]/[locale].mdx` 下管理静态页面内容。
|
||||
|
||||
## 📄 许可证
|
||||
|
||||
Next Forge 采用 MIT 许可证,您可以自由使用、修改和分发。
|
||||
|
||||
## 🤝 贡献
|
||||
|
||||
欢迎提交 Issue 和 Pull Request!您的贡献将帮助我们不断改进这个项目。
|
||||
|
||||
## 关于作者
|
||||
|
||||
专注于 Next.js 全栈开发,欢迎探讨开发、咨询与培训等合作机会,联系微信:bigye_chengpu
|
||||
|
||||
- [Github](https://github.com/weijunext)
|
||||
- [Twitter/X](https://twitter.com/weijunext)
|
||||
- [博客 - J实验室](https://weijunext.com)
|
||||
- [Medium](https://medium.com/@weijunext)
|
||||
- [掘金](https://juejin.cn/user/26044008768029)
|
||||
- [知乎](https://www.zhihu.com/people/mo-mo-mo-89-12-11)
|
||||
Reference in New Issue
Block a user