Jekyll即使在排除后也会构建删除文件夹;抛出关于帖子的构建警告

时间:2017-03-30 17:13:26

标签: build compiler-errors jekyll config

我正在尝试在输出路径中设置一个文件夹,当我Jekyll构建或提供时,该文件夹不会被删除。根据{{​​3}},我尝试使用keep_files和exclude将文件夹的名称添加到我的_config.yml中,如下所示:

exclude: ["LICENSE", "README.md", "CONTRIBUTING", "CONTRIBUTORS", "scripts", stuff]
keep_files: [stuff]

我也试过把东西放在引号中,但只要我在我的配置中尝试构建就会因某些原因为我的每个帖子抛出一个构建警告。

$ Jekyll Build
Configuration file: none
            Source: /home/egrodo/noahyamamoto.com/_posts
       Destination: /home/egrodo/noahyamamoto.com/_posts/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
     Build Warning: Layout 'post' requested in 2015-06-12-timeline-tutorial.md does not exist.
     Build Warning: Layout 'post' requested in 2015-06-19-writing-posts.md does not exist.
     Build Warning: Layout 'post' requested in 2015-06-20-blog-tutorial.md does not exist.
     Build Warning: Layout 'post' requested in 2015-06-25-initial-setup.md does not exist.
     Build Warning: Layout 'post' requested in 2017-03-29-synonym.md does not exist.
                    done in 0.068 seconds.
 Auto-regeneration: enabled for '/home/egrodo/noahyamamoto.com/_posts'
Configuration file: none
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

之后,我指定的“stuff”文件夹仍然存在,但该网站未构建。

任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:0)

嗯,不确定发生了什么,但我编辑了一个不相关的部分,错误消失了,我能够在保留stuff文件夹的同时成功构建。不确定这个。如果有人有任何可靠的信息,请保留此处。