Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 3

Are custom collections supported?

Solved! Go to Solution.

I have a Github Pages site here: https://github.com/lovettchris/coyote

 

It sets up a custom collection in the _config.yml called "learn" which is implemented in the folder "_learn" as per https://jekyllrb.com/docs/collections/

 

All this works perfectly in my local Jekyll testing using "bundle exec jekyll serve", but github says the /learn/ folder is not found so I get 404 errors?  There is also no Jekyll build error reported on github. 

 

So what's the deal?  Are custom collections even supported?

2 Replies
Highlighted
Copilot Lvl 3
Message 2 of 3

Re: Are custom collections supported?

The locally rendered home page looks like this, but you can see the github version is blank.  The custom collection is not being processed...

 

Untitled.png

Highlighted
Solution
Copilot Lvl 3
Message 3 of 3

Re: Are custom collections supported?

Ah, found the problem.  I am using a "docs" folder, so my _config.yml needed to be moved into the docs folder, which means I need to test jekyll locally using the following command line:

bundle exec jekyll serve -b /coyote  -i -s docs

then everything works. Yay.