Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Avoid .json files for static output #1259

Open
andyjansson opened this issue Jul 27, 2018 · 5 comments
Open

Avoid .json files for static output #1259

andyjansson opened this issue Jul 27, 2018 · 5 comments

Comments

@andyjansson
Copy link

I'm getting the following error when navigating from the startpage to '/guides/' (it works when accessing it directly, as the static build suceeded):

An item is in error state path=content%2Fguides&id=

I suspect this might be because Github Pages can't serve up the .json file, as the file is clearly there in the repo.

Maybe index routes should be stored as index.json rather than .json?

@MoOx
Copy link
Owner

MoOx commented Jul 27, 2018

Can you try to put a .nojekyll (empty) file at the root of your public/ folder (or directly at the root of gh-pages branch just to try) if that is making the situation better?

@andyjansson
Copy link
Author

That did nothing, unfortunately.

@MoOx
Copy link
Owner

MoOx commented Jul 27, 2018

I already got similar issues in the past and found this https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/ that helped me. I will try to have a look in a few days. Contribution welcome if you have the time. So not hesitate to ask for help if you struggle with a contribution, I will do my best even if I don’t have a computer atm.

@andyjansson
Copy link
Author

I think creating a _config.yml with the following content fixed it:

include:
- *.json

@MoOx
Copy link
Owner

MoOx commented Jul 27, 2018

I will try to make this invisible to end users, probably by avoiding this .../.json files.

@MoOx MoOx changed the title An item is in error state Avoid .json files for static output Jul 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants