SanYeCao-blog/README.md
2026-04-13 01:53:09 +03:00

101 lines
2.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# SanYeCao-Blog
<p align="right">[<a href="./README.md">中文</a> | <a href="./README-en.md">English</a>]</p>
<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>
## 😋 特性
<br>
<p align="center">
<img
src="./docs/preview-zh.png"
alt="preview-zh"
style="max-width: 700px; width: 100%; height: auto;"
/>
</p>
<br>
- 使用纯静态页面,响应迅速,轻盈美观
- 操作简易Github Action自动部署
- <del><i>Astro Is All You Need</i></del>
更多预览请移步:<b>[Images.md](docs/Images.md)</b>
## 🧳 使用
### 1. Fork 这个仓库
<img width="294" height="155" alt="image" src="https://github.com/user-attachments/assets/6ffc9a32-c084-463f-8988-f7488baa44e0" />
并将其克隆到本地。
### 2. 运行/构建
> [!IMPORTANT]
>
> 在开始之前,请先<b>将根目录的`.env.example`重命名为`.env`并配置好环境变量</b>,否则功能会不完善
有关环境变量的说明详见:<b>[EnvVariables.md](docs/EnvVariables.md)</b>
- 安装依赖
```shell
npm install
```
- 本地调试
```shell
npm run dev
```
- 本地构建
```shell
npm run build
```
### 3. 部署
#### 使用Github Actions自动化部署
详情参见:<b>[GithubActions.md](docs/GithubActions.md)</b>
#### 手动部署
将生成的`dist/`目录上传至你的服务器,使用`NGINX`指向index.html。
### 4. 评论区
项目使用自托管 <b>[Remark42](https://remark42.com/)</b> 作为评论区系统。
安装部署详情请查看官方文档:<b>[Installation | Remark42](https://remark42.com/docs/getting-started/installation/)</b>
<br>
### 5. 更新日志
详情请看:<b>[ChangeLog.md](./docs/ChangeLog.md)</b>
### 6. 旧版本
支持GISCUS的旧版本在 <b>[deprecated/giscus](https://github.com/ClovertaTheTrilobita/SanYeCao-blog/tree/deprecated/giscus)</b> 分支上,但是它有些时候没更新了,可能会有诸多问题。
<hr>
## ⚖️ 许可
本仓库中的源代码部分采用 `MIT License` 开源。
除非另有说明,本仓库中的博客文章、其他原创的非代码内容采用 `CC BY-NC-ND 4.0` 协议。