astrowind
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAstroWind Template
AstroWind 模板
A production-ready Astro 5.0 + Tailwind CSS template with perfect PageSpeed scores, dark mode, blog with RSS, and SEO optimization.
一款可投入生产环境的Astro 5.0 + Tailwind CSS模板,具备完美的PageSpeed评分、深色模式、带RSS的博客功能以及SEO优化。
Tech Stack
技术栈
- Framework: Astro 5.0 with MDX support
- Styling: Tailwind CSS
- Language: TypeScript
- Features: Dark mode, RSS, SEO, Blog
- Package Manager: npm
- Output: directory
dist - Dev Port: 4321
- 框架:Astro 5.0(支持MDX)
- 样式:Tailwind CSS
- 语言:TypeScript
- 功能:深色模式、RSS、SEO、博客
- 包管理器:npm
- 输出目录:
dist - 开发端口:4321
Setup
安装步骤
1. Clone the Template
1. 克隆模板
bash
git clone --depth 1 https://github.com/Eng0AI/astrowind-template.git .If the directory is not empty:
bash
git clone --depth 1 https://github.com/Eng0AI/astrowind-template.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_templatebash
git clone --depth 1 https://github.com/Eng0AI/astrowind-template.git .若目标目录非空:
bash
git clone --depth 1 https://github.com/Eng0AI/astrowind-template.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template2. Remove Git History (Optional)
2. 移除Git历史记录(可选)
bash
rm -rf .git
git initbash
rm -rf .git
git init3. Install Dependencies
3. 安装依赖
bash
npm installbash
npm installBuild
构建项目
bash
npm run buildbash
npm run buildDeploy
部署
Vercel (Recommended)
Vercel(推荐)
bash
vercel pull --yes -t $VERCEL_TOKEN
vercel build --prod -t $VERCEL_TOKEN
vercel deploy --prebuilt --prod --yes -t $VERCEL_TOKENbash
vercel pull --yes -t $VERCEL_TOKEN
vercel build --prod -t $VERCEL_TOKEN
vercel deploy --prebuilt --prod --yes -t $VERCEL_TOKENNetlify
Netlify
bash
netlify deploy --prod --dir=distbash
netlify deploy --prod --dir=distDevelopment
开发
bash
npm run devOpens at http://localhost:4321
bash
npm run dev启动后访问 http://localhost:4321
Configuration
配置
Edit to customize:
src/config.yaml- Site name, description, and metadata
- Navigation links
- Social media links
- Analytics settings
编辑进行自定义:
src/config.yaml- 站点名称、描述和元数据
- 导航链接
- 社交媒体链接
- 分析设置