2017-03-21 12 views
0

Source Codeジキルはブログの投稿を見つけていません

私はジキルを初めて使っていて、グランとSASSと一緒にインストールしました。私の問題は、テストサイトで新しい投稿が表示されている間に、投稿リンクをクリックすると「GET /ブログ/ の例文 - 投稿名」というエラーが表示されます。

Grunt Serveを実行すると、Gruntはエラーを表示しません。私はJekyll serveを実行するただし場合、私は、次のエラーを取得:_includes、_layouts、電気ショック療法...フォルダ:それは私の中に何かを見つけることができないことが表示されます

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. 

ご協力いただければ幸いです。単にsourceディレクトリとしてappでビルド

+0

'_config.yml'は' _includes'等と同じレベルにする必要があります – marcanuy

+0

アプリケーションフォルダから何かを移動してconfigファイルと同じディレクトリに置くと、 'jekyll serve'が動作します。しかし、「粗悪な奉仕」は間違っている。 –

答えて

0

テンプレートファイルがapp/ディレクトリにあるので、。

は、あなたの_config.ymlに以下を追加します。次に

source: app 

いつものようにjekyll serveを実行します。

0

_includesフォルダ内のblog.htmlファイルを追加してみたり、あなたの投稿にlayout: defaultを使用2015-01-31-optimized-jekyll-site-with-grunt.markdownなど

関連する問題