ruby - 用Jekyll创建博客成功,用`jekyll serve`运行时报错。
PHP中文网
PHP中文网 2017-04-24 16:00:57
0
1
642

系统:Ubuntu 15.04。

我之前用的Jekyll 2,基本正常。在本地生成博客和运行博客都没有问题。
在解决这个问题时,我把Jekyll版本升级到了最新的3.1.2版本。结果出现问题:

新建博客时正常。运行时,失败报错:

在网上查找没有找到原因,请大家帮忙看一下。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
伊谢尔伦

The questioner please provide more information. For example, it prompts welcome-to-jekyll.markdownmultiple parameters and the file content should be posted.

I tried the latest version first

gem install jekyll
jekyll --version  #=> 3.1.6, 最新版本
...
jekyll serve  #=> 正常

Then I tried the version of the question again

gem install jekyll -v '3.1.2'
jekyll _3.1.2_ --version  #=> 3.1.2
...
jekyll _3.1.2_ serve  #=> 正常

Without more information, I can only guess. liquidjekyll使用的模板引擎, 通常在源码中表现为{{...}}You can see for yourself whether there are more parameters.

Of course, it is also possible that a particular version of it has bugs, but such a basic bug should not appear.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!