【发布时间】:2015-06-14 18:59:13
【问题描述】:
我有一个简单的网站,并尝试在新文件夹 blog 中添加 Jekyll 博客,因此我在文件夹 /path 中运行了 jekyll new blog。但是,当我在 /path 中运行命令 jekyll build 时,出现以下错误:
$ jekyll build
Configuration file: none
Source: /path
Destination: /path/_site
Generating...
Build Warning: Layout 'post' requested in blog/_posts/2015-06-14-welcome-to-jekyll.markdown does not exist.
Build Warning: Layout 'default' requested in blog/index.html does not exist.
Conversion error: Jekyll::Converters::Scss encountered an error converting 'blog/css/main.scss'.
Conversion error: File to import not found or unreadable: /blog/_sass/base.scss. Load paths: on line 47
我通过在父文件夹中移动_config.yml解决了第一个问题(Configuration file: none),但是使用请求布局时我仍然遇到问题
---
layout: default
---
main.scss 中的导入也不起作用(最后一个错误)。
如果我在再次移动_config.yml 后在/path/blog 中执行相同的命令jekyll build,我没有错误。有人知道如何使用我的配置在父文件夹中执行jekyll build吗?我是否必须完全改变我的网站架构才能在其中包含 Jekyll 博客?
【问题讨论】:
标签: jekyll