@zachleat this might seem like a silly question, but is there any way for filters and shortcodes in 11ty to access the global config data? I was about to bang something into lace and realized I might be missing the obvious…
After some digging last night I realized where I was getting hung up — trying to work with some global data at the 11ty computed stage. Otoh I now have a much better feel for the internals of the data cascade. :D
@zachleat FWIW, I'm in the middle of making a custom plugin that preloads all the content from a headless CMS, and makes it available as global data.
The biggest trick is when one document's precomputed content relies on another's (ie, permalink = document.parent.slug / document.slug). I think the easiest (?) approach might be for the plugin to keep a copy of the loaded data on its own, and provide a dediated helper function to access it/look up other docs, when the global data isn't available