Are custom collections supported?

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?

1 Like

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

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.

1 Like