Partial Data
Underscore-prefixed .json files within source/_patterns
will be concatenated to the output of _data.json
, the whole in turn getting built into data.json
, the final source of globally scoped data.
Partial data is distinct from pattern data. For example, 01-blog.json
is pattern data and specific to the 01-blog
pattern. No other pattern will pick up 01-blog.json
, even if 01-blog.mustache
is included in another pattern. However, _01-blog.json
is partial data and will get concatenated to the global data outputted to data.json
. _01-blog.json
will be picked up by all patterns.
- DO NOT EDIT source/_data/data.json
- DO PUT GLOBAL DATA IN source/_data/_data.json
- DO LIBERALLY USE PARTIAL DATA IN source/_patterns FOR ORGANIZATIONAL SANITY