config.yml defines collectio eggs
collections:
eggs:
output: true
A folder _eggs has a document with front matter
I can access the collection label so:
{{ site.collections[0].label }}
which returns "eggs" but not so
{{ site.eggs.label }}
which returns nothing as does this:
{{ site.eggs }}
The documentation about collections at https://jekyllrb.com/docs/collections/#liquid-attributes does not make much sense to me: "The collections are also available under site.collections, with the metadata you specified". In an issue at github the authors say, that the collections field was (silently?) dropped (https://github.com/jekyll/jekyll/issues/4392).
I am currently evaluating Jekyll and this causes doubts where it stable, has up to date docs and has other pitfalls ahead.
Do I misunderstand the docs? Why does the above access to collection metadata not work.
{{ site.eggs }}
empty for you? That one should return all eggs. – jpvillaisaza