8000 GitHub - songjian/songjian.github.io: 宋健的个人主页与技术博客,使用 Astro 7 构建 · GitHub
[go: up one dir, main page]

Skip to content

About

宋健的个人主页与技术博客,使用 Astro 7 构建

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

songjian.github.io

宋健的个人主页与技术博客。站点使用 Astro 7 构建,部署在 GitHub Pages:

本地开发

要求 Node.js >=22.23.4。

npm install
npm run dev

生产构建:

npm run build
npm run preview

内容结构

  • src/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。

About

宋健的个人主页与技术博客,使用 Astro 7 构建

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0