Are custom collections supported? #21803
-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The locally rendered home page looks like this, but you can see the github version is blank. The custom collection is not being processed… |
Beta Was this translation helpful? Give feedback.
-
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:
then everything works. Yay. |
Beta Was this translation helpful? Give feedback.
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:
then everything works. Yay.