You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
changed the title
Currently not working on Oasis server
"No such file or directory" due to missing front matter is confusing
Aug 11, 2015
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. ;)
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
The text was updated successfully, but these errors were encountered: