尝试jekyll

发布 : 2017-07-11 分类 : Blog 浏览 :

启动本地服务器后,终端显示如下:

1
2
3
4
5
6
7
8
9
10
Configuration file: /Users/jim/jimxu-blog/_config.yml
Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
Source: /Users/jim/jimxu-blog
Destination: /Users/jim/jimxu-blog/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.39 seconds.
Auto-regeneration: enabled for '/Users/jim/jimxu-blog'
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.

此时访问http://127.0.0.1:4000/预览生成的网站
ctrl+c关闭本地服务器

初始效果:

20170711149976507027132.png

安装时如果报jekyll 3.5.0 | Error: bundler的错误:

1
gem install jekyll bundler

启动server时报Operation not supported on socket @ rb_sysopen - /Users/jim/Library/Application Support/Google/Chrome/App Shim Socket错误:

需要先进入生成的项目目录再执行jekyll server命令

本文作者 : 小凡
原文链接 : https://16bh.github.io/2017/07/11/how-to-use-jekyll/
版权声明 : 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明出处!
留下足迹