即使排除后,Jekyll 也会构建删除文件夹;抛出关于帖子的构建警告
Jekyll build removing folders even after exclusion; throwing Build Warning about posts
我正在尝试在我的输出路径中设置一个文件夹,该文件夹在我构建或提供 Jekyll 时不会被删除。根据 link here,我尝试使用 keep_files 和排除将文件夹名称添加到我的 _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”文件夹仍然存在,但网站没有建立。
如有任何帮助,我们将不胜感激!
呃,不确定发生了什么,但我编辑了一个不相关的部分,错误消失了,我能够在保留 stuff 文件夹的同时成功构建。不确定这个。将保留在这里以防万一有人有任何可靠的信息。
我正在尝试在我的输出路径中设置一个文件夹,该文件夹在我构建或提供 Jekyll 时不会被删除。根据 link here,我尝试使用 keep_files 和排除将文件夹名称添加到我的 _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”文件夹仍然存在,但网站没有建立。
如有任何帮助,我们将不胜感激!
呃,不确定发生了什么,但我编辑了一个不相关的部分,错误消失了,我能够在保留 stuff 文件夹的同时成功构建。不确定这个。将保留在这里以防万一有人有任何可靠的信息。