【发布时间】:2017-03-21 17:07:52
【问题描述】:
我是 Jekyll 的新手,并通过 Grunt 和 SASS 安装了它。我的问题是,虽然我的测试站点将显示我的新帖子,但当我单击帖子链接时,我收到错误“无法获取 /blog/example-post-name”。
Grunt 在运行 Grunt Serve 时没有显示任何错误。但是,如果我运行 Jekyll serve 我会收到以下错误:
Build Warning: Layout 'article' requested in app/_posts/2015-01-31-optimized-jekyll-site-with-grunt.markdown does not exist.
Build Warning: Layout 'article' requested in app/_posts/2017-03-20-welcome-to-jekyll.markdown does not exist.
Liquid Exception: Could not locate the included file 'blog.html' in any of ["/Users/rich/jekyll-site/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source. in app/index.html
jekyll 3.4.2 | Error: Could not locate the included file 'blog.html' in any of ["/Users/rich/jekyll-site/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source.
它似乎在我的 _includes、_layouts 等文件夹中找不到任何内容。
任何帮助将不胜感激。
【问题讨论】:
-
_config.yml应与_includes等处于同一级别 -
当我将任何内容移出 app 文件夹并将其放在与配置文件相同的目录中时,它会使
jekyll serve工作。虽然那时grunt serve出错了。
标签: jekyll