Skip to content

wenbsu/wenbsu.github.io

Repository files navigation

关于

博客的模板是从 Hux fork的。非常感谢这个这个作者。

详细教程参考 《使用 GitHub Pages + Jekyll 搭建个人博客

部署

1. 本地安装 Jekyll

  • 安装 Ruby和Devkit Downloads
  • RubyGems 镜像源切换:gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
  • Jekyll cmd命令:gem install jekyll bundler

2. 克隆到本地

3. 运行项目

  • 在安装好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]

更多

  1. 更多博客模板 点击这
  2. Github Pages文档 点击这
  3. Jekyll文档 点击这

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published