宋健的个人主页与技术博客。站点使用 Astro 7 构建,部署在 GitHub Pages:
- 个人主页:https://songjian.github.io/
- 项目展示:https://songjian.github.io/projects/
- 技术博客:https://songjian.github.io/blog/
要求 Node.js >=22.23.4。
npm install
npm run dev生产构建:
npm run build
npm run previewsrc/pages/:页面路由src/components/:页面组件src/data/projects.ts:首页与项目页的项目清单src/content/blog/:Markdown 博客文章src/content.config.ts:内容集合与 front matter 校验public/assets/img/:文章图片与站点素材src/styles/global.css:全站样式
新增文章时,在 src/content/blog/ 下创建 YYYY-MM-DD-title.md。front matter 至少包含 title,建议同时提供 description、date、categories 和 tags:
---
title: "文章标题"
description: "文章摘要"
date: 2026-11-12 09:00:00 +0800
categories: [linux]
tags: [Linux, Docker]
---设置 published: false 可临时隐藏文章。
推送到 main 后,.github/workflows/deploy.yml 会自动构建并发布到 GitHub Pages。
仓库名为 songjian.github.io,GitHub Pages 地址即 https://songjian.github.io/。仓库设置中需将 Pages → Build and deployment → Source 设为 GitHub Actions。
每周开发周报仍由 tools/devlog/ 自动生成,并提交到 src/content/blog/。使用说明见 tools/devlog/README.md。