建议选择 Jekyll:无需构建环境,GitHub 直接渲染,适合快速搭建。
<你的GitHub用户名>.github.io(例如 zhangsan.github.io)Add a README file。操作:
# 以 Jekyll 为例,克隆主题到本地
git clone https://github.com/kitian616/jekyll-TeXt-theme.git
cd jekyll-TeXt-theme
_posts 目录下用 Markdown 写技术文章,文件名格式 YYYY-MM-DD-title.md。resume.md,使用 HTML+CSS 或 Markdown 编写。
layout: page
title: 我的简历
## 个人信息
- 姓名:张三
- 邮箱:zhangsan@email.com
- GitHub:[github.com/zhangsan](https://github.com/zhangsan)
## 技术栈
- 语言:C++/Python/JavaScript
- 框架:React/Node.js
_config.yml,添加简历入口:
```yaml
navigation:
git add .
git commit -m "init blog"
git push origin main
https://<你的用户名>.github.io 查看效果。CNAME 记录指向 xxx.github.io。CNAME 文件,写入域名(如 blog.zhangsan.com)。_config.yml 中添加关键词和描述:
description: "张三的技术博客 | C++/Python开发工程师"
keywords: "编程, 求职, 分布式系统"
├── _config.yml # 全局配置
├── _posts/ # 技术文章
│ └── 2024-05-20-cpp-concurrency.md
├── resume.md # 简历页面
├── images/ # 图片资源
├── CNAME # 自定义域名
└── _includes/ # 网页组件(导航栏、页脚)
# .github/workflows/deploy.yml
name: Deploy Blog
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/jekyll-build-pages@v1
prefers-color-scheme 适配。通过以上步骤,你可以快速搭建一个兼具技术深度和求职竞争力的个人博客,所有内容通过 GitHub 免费托管,适合长期维护。