Gyoza is a static blog template built with Astro and React.
Demo Site:
Enjoy it!
- ✅ 有着规范的 URL 和 OpenGraph 信息,对 SEO 友好
- ✅ 支持站点地图
- ✅ 支持 RSS 订阅
- ✅ 支持夜间模式
- ✅ 特殊日期变灰
- ✅ 简单干净的配色和主题
- ✅ 支持评论系统
- ✅ 支持代码高亮
前往:Documentation 或 在线文档
├── public/
├── src/
│ ├── components/
│ ├── content/
│ ├── layouts/
│ ├── pages/
│ ├── plugins/
│ ├── store/
│ ├── styles/
│ ├── utils/
│ └── config.json
├── astro.config.mjs
├── README.md
├── package.json
└── tsconfig.json
网站配置保存在 config.json 文件。
本项目使用 GitHub Actions 自动部署到 Vercel。你需要配置以下 GitHub Secrets:
VERCEL_TOKEN: Vercel 访问令牌。VERCEL_ORG_ID: 你的 Vercel 组织 ID。VERCEL_PROJECT_ID: 你在 Vercel 上对应的项目 ID。
详细步骤请参考 部署文档。
| Command | Action |
|---|---|
pnpm i |
Installs dependencies |
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm format |
Format code using Prettier |
`
