Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No such file or directory" due to missing front matter is confusing #5

Open
tiagoefreitas opened this issue Aug 10, 2015 · 3 comments

Comments

@tiagoefreitas
Copy link

See here:
https://oasis.sandstorm.io/shared/Z6vDvTx3oYaBVrc1jmHH8PQr6dx4rcuIrrR-wljtEsC

Error: remote exception: remote exception: remote exception: remote exception: remote exception: open(name.cStr(), flags, mode): No such file or directory; name = /var/preview/index.html
C++ location:(remote):??
type: failed

@kentonv
Copy link
Owner

kentonv commented Aug 11, 2015

Hi Tiago,

Hacker CMS uses Jekyll to generate HTML from Markdown. Jekyll only pays attention to files that contain something they call "front matter", which looks like, for example:

---
layout: page
title: My Site
---

Since your index.md didn't contain any front matter, no preview file was generated, hence the "no such file or directory" error. I added a front matter to your example and now it is working.

FWIW, I recognize that Hacker CMS has an embarrassingly bad UX, but we don't really have time to spend improving it right now. :/

@kentonv kentonv changed the title Currently not working on Oasis server "No such file or directory" due to missing front matter is confusing Aug 11, 2015
@tiagoefreitas
Copy link
Author

Thanks Kenton, should have read the docs...actually I just saw the front matter appears for new grains, I probably deleted it by accident.

@ocdtrekkie
Copy link

This just stumped me too when I was using it. I use a Hacker CMS grain to test Markdown for the docs. I just overwrote all with the markdown from the GitHub repo, and that didn't work well. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants