As a side note, can you share why you want to do this? It is an unusual request because it is not something people typically want to do and there may be a better, “more Jekyll”, way to do it.
I’m building a documentation website for a components library at the moment, and we have a list of color names (and other data that we’re reusing in a lot of pages), and each component has most of the content inside the frontmatter. So instead of copying the list of colors every time we need it it’s easier for us to just call it from _config file.
Okay, thank you. If I understand you correctly, you might consider creating collections instead. Then, you could build an index page that lists all the colors, like this: