jekyll 3.0.0-beta错误是一个目录@ rb_sysopen

时间:2015-02-17 04:39:46

标签: jekyll

使用jekyll-2.5.3我可以运行“jekyll serve --watch”来生成我的网站并进行预览。但是,自从升级到jekyll-3.0.0.pre.beta1后,我现在看到以下错误

jekyll serve --watch
Configuration file: /wrk/git/blog/_config.yml
       Deprecation: Auto-regeneration can no longer be set from your configuration file(s). Use the --[no-]watch/-w command-line option instead.
       Deprecation: The 'pygments' configuration option has been renamed to 'highlighter'. Please update your config file accordingly. The allowed values are 'rouge', 'pygments' or null.
            Source: /wrk/git/blog
       Destination: /wrk/git/blog/_site
 Incremental build: enabled
      Generating... 
     Build Warning: Layout 'nil' requested in atom.xml does not exist.
     Build Warning: Layout 'nil' requested in rss.xml does not exist.
jekyll 3.0.0-beta1 | Error:  Is a directory @ rb_sysopen - /wrk/git/blog/_site/tech/2013/04/24/blog

我已经检查过,我有读/写/执行权限,所以我不认为这是一个权限错误。如果它有帮助,这是我的源代码和布局(https://github.com/minhongrails/blog),它在根目录中有_includes,_layouts,_posts,index.html等目录。

有没有人有任何想法如何解决这个问题?谢谢!

2 个答案:

答案 0 :(得分:1)

出于某种原因,我需要将源文件移动到"源" _config.yml中指定的子目录。这是我必须修改的一些_config.yml

source: src

# needed to also update this b/c it was generating inside the "source" dir
destination: _site

在Jekyll 2中我不需要这样做,但我想现在Jekyll 3中有必要吗?这是一个包含更多详细信息的Github问题:https://github.com/jekyll/jekyll/issues/3248

答案 1 :(得分:1)

Build Warning: Layout 'nil' requested in atom.xml does not exist.
 Build Warning: Layout 'nil' requested in rss.xml does not exist.

我认为布局应该为null,而不是nill。