A static blog based on Astro
Find a file
2026-03-27 19:11:51 +02:00
.github/workflows update workflow 2026-03-26 10:47:12 +02:00
.vscode "Initial commit from Astro" 2026-03-24 16:19:09 +02:00
build added locale switch and adjusted css 2026-03-25 00:28:23 +02:00
docs update doc 2026-03-27 11:12:23 +02:00
public Added SEO 2026-03-25 17:26:22 +02:00
src shrink width 2026-03-26 19:35:50 +02:00
.env.example move giscus token to .env 2026-03-25 12:45:43 +02:00
.gitignore "Initial commit from Astro" 2026-03-24 16:19:09 +02:00
astro.config.mjs Added SEO 2026-03-25 17:26:22 +02:00
LICENSE Add MIT License to the project 2026-03-27 19:06:30 +02:00
package-lock.json Added SEO 2026-03-25 17:26:22 +02:00
package.json Added SEO 2026-03-25 17:26:22 +02:00
README-en.md Update README to include license section 2026-03-27 19:09:52 +02:00
README.md Format license information in README.md 2026-03-27 19:11:51 +02:00
tsconfig.json Finished structure 2026-03-24 19:33:01 +02:00

SanYeCao-Blog

[中文 | English]


三叶草Blog
🌊轻度/快速/美观🌊

Built With
Static Badge Static Badge Static Badge

😋 特性


image
  • 使用纯静态页面,响应迅速,轻盈美观
  • 操作简易Github Action自动部署
  • Astro Is All You Need

更多预览请移步:Images.md

🧳 使用

1. Fork 这个仓库

image

并将其克隆到本地。

2. 运行/构建

Important

在开始之前,请先将根目录的.env.example重命名为.env并配置好环境变量,否则功能会不完善

有关环境变量的说明详见:EnvVariables.md

  • 本地调试

    npm run dev
    
  • 本地构建

    npm run build
    

3. 部署

使用Github Actions自动化部署

详情参见:GithubActions.md

手动部署

将生成的dist/目录上传至你的服务器,使用NGINX指向index.html。


⚖️ 许可

本仓库中的源代码部分采用 MIT License 开源。

除非另有说明,本仓库中的博客文章、其他原创的非代码内容采用 CC BY-NC-ND 4.0 协议。