sakura个人站点模板
  • Astro 30.3%
  • JavaScript 29.4%
  • TypeScript 13.3%
  • CSS 8.8%
  • Svelte 8%
  • Other 10.1%
Find a file
2026-10-24 00:11:02 +08:00
.github/workflows Initial template 2026-09-26 10:56:08 +08:00
docs Add OpenSSH incremental deployment and WebP generation 2026-10-24 00:11:02 +08:00
public Update blog content and Waline integration; clean repository files 2026-10-22 00:30:27 +08:00
scripts Add OpenSSH incremental deployment and WebP generation 2026-10-24 00:11:02 +08:00
src Add OpenSSH incremental deployment and WebP generation 2026-10-24 00:11:02 +08:00
.gitattributes Initial template 2026-09-26 10:56:08 +08:00
.gitignore Add OpenSSH incremental deployment and WebP generation 2026-10-24 00:11:02 +08:00
.npmrc Initial template 2026-09-26 10:56:08 +08:00
astro.config.mjs Add OpenSSH incremental deployment and WebP generation 2026-10-24 00:11:02 +08:00
biome.json Initial template 2026-09-26 10:56:08 +08:00
deploy.example.json Add OpenSSH incremental deployment and WebP generation 2026-10-24 00:11:02 +08:00
LICENSE Initial template 2026-09-26 10:56:08 +08:00
package.json Add OpenSSH incremental deployment and WebP generation 2026-10-24 00:11:02 +08:00
pagefind.yml Initial template 2026-09-26 10:56:08 +08:00
pnpm-lock.yaml Update blog content and Waline integration; clean repository files 2026-10-22 00:30:27 +08:00
postcss.config.mjs Initial template 2026-09-26 10:56:08 +08:00
publish.cmd Add OpenSSH incremental deployment and WebP generation 2026-10-24 00:11:02 +08:00
README.md Add OpenSSH incremental deployment and WebP generation 2026-10-24 00:11:02 +08:00
svelte.config.js Initial template 2026-09-26 10:56:08 +08:00
tailwind.config.cjs Initial template 2026-09-26 10:56:08 +08:00
tsconfig.json Initial template 2026-09-26 10:56:08 +08:00
vercel.json Initial template 2026-09-26 10:56:08 +08:00
启动预览.cmd Initial template 2026-09-26 10:56:08 +08:00

Sakura 的个人站点

基于 Astro 和 Fuwari 的个人静态博客,支持 Markdown 文章、分类标签、全文搜索、明暗主题、RSS 和站点地图。

导览

阅读 导览,包含项目结构,pnpm 指令。

操作 入口
修改站名、简介、头像、导航 src/config.ts
写文章或放置文章素材 编辑:新建文章
修改友链、首页文案和侧栏 编辑:站点内容
查找命令的用途 pnpm 指令

安装

环境依赖:

工具 版本 用途
Node.js 推荐 22.x 与项目 CI 保持一致
npm 随 Node.js 安装 安装指定版本的 pnpm
pnpm 9.14.4 与 package.json 的 packageManager 一致

已有可运行本项目的 Node.js 22 或 24 时可以继续使用。

在仓库根目录执行:

pnpm install --frozen-lockfile
pnpm dev

浏览器访问终端显示的地址,默认是 http://localhost:4321/。

编辑

阅读 编辑,包含文章字段、Markdown、图片与封面、公式、提示框、折叠内容、自定义样式、音频、本地视频和在线嵌入视频的完整示例。

日常编辑使用 pnpm dev。草稿会在开发模式中显示;全文搜索需使用构建后的预览。

发布

本机

阅读 发布。可以使用deploy脚本上传,它已经实现增量打包上传,并且会自动解压缩到目标路径:

  • 在项目文件夹中新建 deploy.local.json, 并且在其中填入连接信息(可以参考例子 deploy.example.json)
  • 运行 "pnpm run deploy"即可完成上传。

目前支持两种认证模式,其一是输入密码,其二是使用私钥,通过 deploy.local.json 中是否填有正确的 private_key 字段而定,它应该填入私钥文件存储的路径。

可以通过 "pnpm run deploy --skip-build" 来直接上传目前的dist文件,跳过build。 此外可以通过 "pnpm run deploy --dry-run" 来在实际上传之前测试连接。详见 SSH 增量发布。


主题基于 Fuwari,代码沿用 MIT 许可证,见 LICENSE。