Jekyll平台配置指南
# 安装 Jekyll
gem install jekyll -- --with-cppflags=-I$(brew --prefix openssl)/include
1
# 查看 Jekyll 版本
jekyll -v
1
# 站点初始化
## git checkout --orphan gh-pages
git rm -rf .
1
2
2
# 创建新站点
jekyll new --skip-bundle .
1
# 替换依赖
## 注释掉
## gem "jekyll", "~> 4.3.1"
## 添加
gem "github-pages", "~> 227"
1
2
3
4
5
2
3
4
5
# 安装依赖
bundle install
1
解决依赖问题
bundle add webrick
1
# 本地运行
bundle exec jekyll serve
1
# 准备工作
https://docs.github.com/en/pages/quickstart (opens new window)
# Jekyll主题最佳实践
https://github.com/lorepirri/cayman-blog (opens new window)
# Jekyll 的 front-matter 规则
https://jekyllrb.com/docs/front-matter/ (opens new window)
我开发此功能的测试博客:https://terwer.github.io (opens new window)
源码:https://github.com/terwer/terwer.github.io/tree/gh-pages (opens new window)
# 发布配置
编辑 (opens new window)
上次更新: 2023/02/22, 13:47:25
- 01
- 解决css部分border被圆角切掉之后圆角的边框消失问题03-18
- 02
- 使用TypeScript开发一个自定义的Node-js前端开发脚手架03-08
- 03
- Github-Actions使用release-please实现自动发版03-06