This commit is contained in:
砂糖
2025-11-21 13:36:06 +08:00
commit 7cd50654ed
112 changed files with 14246 additions and 0 deletions

99
content/about/en.mdx Normal file
View 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
View 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
View 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)

View File

@@ -0,0 +1,37 @@
---
title: Privacy Policy
description: How we collect and use your information
lastUpdated: "2025-02-19"
---
> Updated on 2025-02-19
# Privacy Policy
This Privacy Policy describes how we collect and use your information.
## Information We Collect
We collect information that you provide directly to us:
- Account information
- Usage data
- Communication preferences
## How We Use Your Information
We use the information we collect to:
- Provide our services
- Improve user experience
- Send important updates
## Data Security
We implement appropriate security measures to protect your data.
## Contact Information
For privacy-related questions, please reach out to our team.
## Updates to This Policy
We may update this policy from time to time. Please review it periodically.

View File

@@ -0,0 +1,37 @@
---
title: プライバシーポリシー
description: お客様の情報の収集および利用方法について
lastUpdated: "2025-02-19"
---
> 更新日2025年2月19日
# プライバシーポリシー
本プライバシーポリシーでは、当社がお客様の情報をどのように収集し、利用するかについて説明いたします。
## 収集する情報
当社は、お客様から直接提供いただく以下の情報を収集いたします:
- アカウント情報
- 利用データ
- 通信設定
## 情報の利用目的
収集した情報は、以下の目的で利用させていただきます:
- サービスの提供
- ユーザー体験の向上
- 重要なお知らせの送信
## データセキュリティ
お客様のデータを保護するため、適切なセキュリティ対策を実施しております。
## お問い合わせ先
プライバシーに関するご質問は、当社サポートチームまでお問い合わせください。
## ポリシーの更新
本ポリシーは随時更新される場合がございます。定期的にご確認いただきますようお願いいたします。

View File

@@ -0,0 +1,37 @@
---
title: 隐私政策
description: 我们如何收集和使用您的信息
lastUpdated: "2025-02-19"
---
> 更新日期2025年2月19日
# 隐私政策
本隐私政策说明了我们如何收集和使用您的信息。
## 我们收集的信息
我们收集您直接提供给我们的信息:
- 账户信息
- 使用数据
- 通信偏好设置
## 我们如何使用您的信息
我们将收集的信息用于:
- 提供服务
- 改善用户体验
- 发送重要更新
## 数据安全
我们采取适当的安全措施来保护您的数据。
## 联系方式
如有隐私相关问题,请联系我们的团队。
## 政策更新
我们可能会不时更新本政策。请定期查看。

View File

@@ -0,0 +1,32 @@
---
title: Terms of Service
description: Terms and conditions for using our service
lastUpdated: "2025-02-19"
---
> Updated on 2025-02-19
# Terms of Service
Welcome to our service. By using our website, you agree to these terms.
## 1. Acceptance of Terms
By accessing and using this website, you accept and agree to be bound by the terms and conditions of this agreement.
## 2. User Responsibilities
You agree to:
- Provide accurate information
- Maintain the security of your account
- Comply with all applicable laws
## 3. Service Changes
We reserve the right to:
- Modify or discontinue services
- Update these terms at any time
## Contact Us
If you have any questions about these terms, please contact us.

View File

@@ -0,0 +1,32 @@
---
title: 利用規約
description: サービス利用に関する規約と条件
lastUpdated: "2025-02-19"
---
> 更新日2025年2月19日
# 利用規約
当社のサービスをご利用いただき、ありがとうございます。本ウェブサイトをご利用になる際は、以下の利用規約に同意いただいたものとみなします。
## 1. 規約の同意
本ウェブサイトにアクセスし利用することにより、お客様は本規約の条件に同意し、拘束されることを承諾するものとします。
## 2. ユーザーの責任
お客様には以下の事項に同意していただきます:
- 正確な情報の提供
- アカウントの安全管理
- 適用される法令の遵守
## 3. サービスの変更
当社は以下の権利を留保します:
- サービスの変更または終了
- 本規約の随時更新
## お問い合わせ
本規約に関するご質問がございましたら、お気軽にお問い合わせください。

View File

@@ -0,0 +1,32 @@
---
title: 服务条款
description: 使用我们服务的条款和条件
lastUpdated: "2025-02-19"
---
> 更新日期2025年2月19日
# 服务条款
欢迎使用我们的服务。使用本网站即表示您同意以下条款。
## 1. 条款接受
访问和使用本网站即表示您接受并同意受本协议条款和条件的约束。
## 2. 用户责任
您同意:
- 提供准确信息
- 维护账户安全
- 遵守所有适用法律
## 3. 服务变更
我们保留以下权利:
- 修改或终止服务
- 随时更新这些条款
## 联系我们
如果您对这些条款有任何疑问,请与我们联系。