SanYeCao-blog/README.md

60 lines
1.4 KiB
Markdown
Raw Normal View History

2026-03-25 20:33:22 +00:00
# SanYeCao-Blog
2026-03-24 14:19:09 +00:00
2026-03-25 20:33:22 +00:00
<p align="center"><br>
✨三叶草Blog✨<br>
🌊轻度/快速/美观🌊<br><br>
Built With<br>
<img alt="Static Badge" src="https://img.shields.io/badge/Astro-6.0-purple">
<img alt="Static Badge" src="https://img.shields.io/badge/Nodejs-24-green">
<img alt="Static Badge" src="https://img.shields.io/badge/Heart-♥️-pink">
<br>
</p>
2026-03-24 14:19:09 +00:00
2026-03-25 20:33:22 +00:00
## 😋 特性
2026-03-24 14:19:09 +00:00
<img width="2879" height="1920" alt="image" src="https://github.com/user-attachments/assets/542c08c3-269f-476f-94c9-855bb9acc721" />
2026-03-24 14:19:09 +00:00
2026-03-25 20:33:22 +00:00
- 使用纯静态页面,相应迅速,轻盈美观
- 操作简易Github Action自动部署
- <del><i>Astro Is All You Need</i></del>
2026-03-24 14:19:09 +00:00
更多预览请移步:<b>[Images.md](docs/Images.md)</b>
2026-03-24 14:19:09 +00:00
2026-03-25 20:33:22 +00:00
## 🧳 使用
2026-03-24 14:19:09 +00:00
2026-03-25 20:33:22 +00:00
### 1. Fork 这个仓库
2026-03-24 14:19:09 +00:00
2026-03-25 20:33:22 +00:00
[screenshot]
2026-03-24 14:19:09 +00:00
2026-03-25 20:33:22 +00:00
并将其克隆到本地。
2026-03-24 14:19:09 +00:00
2026-03-25 20:33:22 +00:00
### 2. 运行/构建
> [!IMPORTANT]
>
> 在开始之前,请先<b>将根目录的`.env.example`重命名为`.env`并配置好环境变量</b>,否则功能会不完善
有关环境变量的说明详见:<b>[EnvVariables.md](docs/EnvVariables.md)</b>
- 本地调试
```shell
npm run dev
```
- 本地构建
```shell
npm run build
```
### 3. 部署
#### 使用Github Actions自动化部署
详情参见:<b>[GithubActions.md](docs/GithubActions.md)</b>
#### 手动部署
将生成的`dist/`目录上传至你的服务器,使用`NGINX`指向index.html。