File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 47
47
48
48
### 搭建本地jekyll环境
49
49
50
- 1 . 首先下载并安装[ railsinstaller ] ( http ://railsinstaller .org/en ) ,安装好以后gem和ruby就都有了![ ] ( /resource/201502/1.png )
50
+ 1 . 首先下载并安装[ rubyinstaller ] ( https ://rubyinstaller .org/downloads/ ) ,安装好以后gem和ruby就都有了![ ] ( /resource/201502/1.png ) [ 2019.9.9更新:以前的railinstaller安装的ruby版本不支持最新的jekyll,因此直接装rubyinstaller即可,全量安装是可以的,不全量没测试 ]
51
51
52
52
2 . 然后执行 ` gem install jekyll ` 安装jekyll,注意有时候要执行多次才能成功![ ] ( /resource/201502/2.png )
53
53
54
54
3 . 最后进入git项目的根目录,运行` jekyll serve ` ,然后访问http://127.0.0.1:4000/便能看到效果了
55
55
56
56
4 . 本地测试好以后,把代码提交到github,github会自动生成静态网站。注意jekyll生成的_site文件夹不需要提交,这个是本地的静态网站文件夹
57
57
58
- > jekyll还有更多高级的用法,可以参考官方网站的[ 源代码] ( https://github.com/jekyll/jekyll/tree/master/site ) ,里面包含了翻页,页面变量,页面数据等用法
58
+ > jekyll还有更多高级的用法,可以参考官方网站的[ 源代码] ( https://github.com/jekyll/jekyll/tree/master/site ) ,里面包含了翻页,页面变量,页面数据等用法
You can’t perform that action at this time.
0 commit comments