0
처음부터 작은 웹 사이트를 만드는 지킬로 연습하고 있습니다. 불행하게도, 다음 명령어 입력시 오류 : 여기"포함 된 파일을 찾을 수 없습니다"오류
rodolfocangiotti.github.io rodolfo$ bundle exec jekyll serve --incremental --host=0.0.0.0
는 stdout
에 무엇을 인쇄한다 :
Configuration file: /Volumes/Data HD/Jekyll Folder/rodolfocangiotti.github.io/_config.yml
Source: /Volumes/Data HD/Jekyll Folder/rodolfocangiotti.github.io
Destination: /Volumes/Data HD/Jekyll Folder/rodolfocangiotti.github.io/_site
Incremental build: enabled
Generating...
Liquid Exception: Could not locate the included file 'bodyheader.html' in any of ["/Volumes/Data HD/Jekyll Folder/rodolfocangiotti.github.io/_includes", "/usr/local/lib/ruby/gems/2.4.0/gems/minima-2.1.1/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source. in /_layouts/default.html
jekyll 3.6.2 | Error: Could not locate the included file 'bodyheader.html' in any of ["/Volumes/Data HD/Jekyll Folder/rodolfocangiotti.github.io/_includes", "/usr/local/lib/ruby/gems/2.4.0/gems/minima-2.1.1/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source.
는 사실, bodyheader.html
파일은 _include
폴더 안에 있습니다. 왜 지킬이 그 파일을 찾을 수 없는지 그리고 그 문제를 어떻게 해결할 수 있는지 설명 할 수 있습니까?
UPDATE :
bodyheader.html
파일이 _layouts
폴더 안에있는 default.html
파일 내부에 포함되어 있습니다. 다음은 그 파일의 내용은 다음과 같습니다
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
{% include bodyheader.html %}
{{ content }}
</body>
</html>
어떤 코드를 포함 시키려면 어떤 코드를 사용하고 있습니까? – marcanuy
@marcanuy'_layouts/default.html' 안에'bodyheader.html'을 포함하려고합니다. 위 질문에 내용을 추가 할 것입니다. – rudicangiotti