修改发布主题¶
安装基于gem的主题¶
- 在 ./Gemfile中增加 gem “jekyll-theme-awesome”
- 安装主题。bundle install
- 在 _config.yml 中修改主题为 theme: jekyll-theme-awesome
- 编译网站 bundle exec jekyll serve
主题介绍:https://jekyllrb.com/docs/themes/#overriding-theme-defaults
注解
./Gemfile 可以添加多个主题,但是_config.yml只能以一种主题发布
常用Jekyll帮助主题
- 典型左中右三栏结构:Minimal Mistakes
- 经典帮助文档:Jekyll Documentation Them
- Jekyll Doc Theme
在 github pages 上添加主题¶
官方教程:https://help.github.com/articles/adding-a-jekyll-theme-to-your-github-pages-site/