博客的模板是从 Hux fork的。非常感谢这个这个作者。
详细教程参考 《使用 GitHub Pages + Jekyll 搭建个人博客》
- 安装 Ruby和Devkit Downloads
- RubyGems 镜像源切换:
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
- Jekyll cmd命令:
gem install jekyll bundler
- git clone [email protected]:wenbsu/wenbsu.github.io.git
- 在安装好jekyll的前提下,cmd命令切换到仓库文件目录下,执行以下命令来启动 Jekyll 服务器:
bundle install
bundle exec jekyll serve
gem update jekyll # 更新jekyll
gem update github-pages #更新依赖的包
- 在浏览器中访问 http://localhost:4000 就可以看到你的 Jekyll 网站了,你对本地博客的修改都会在这个地址进行显示,修改配置后网址要
强制刷新
才会展示。如果想修改IP访问,启动命令指定本机IP:bundle exec jekyll serve -w --host=[本机IP]