Skip to content

Commit 2a6ef2c

Browse files
authored
update rubyinstaller
1 parent 3c9437e commit 2a6ef2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2015-02-11-create-githubpages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747

4848
### 搭建本地jekyll环境
4949

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即可,全量安装是可以的,不全量没测试]
5151

5252
2. 然后执行 `gem install jekyll` 安装jekyll,注意有时候要执行多次才能成功![](/resource/201502/2.png)
5353

5454
3. 最后进入git项目的根目录,运行`jekyll serve` ,然后访问http://127.0.0.1:4000/便能看到效果了
5555

5656
4. 本地测试好以后,把代码提交到github,github会自动生成静态网站。注意jekyll生成的_site文件夹不需要提交,这个是本地的静态网站文件夹
5757

58-
> jekyll还有更多高级的用法,可以参考官方网站的[源代码](https://github.com/jekyll/jekyll/tree/master/site),里面包含了翻页,页面变量,页面数据等用法
58+
> jekyll还有更多高级的用法,可以参考官方网站的[源代码](https://github.com/jekyll/jekyll/tree/master/site),里面包含了翻页,页面变量,页面数据等用法

0 commit comments

Comments
 (0)