Baking pages worked by creating the page data structure from the blocks in the database for that page.
This meant that any optional sections with no blocks currently configured would not be present in the baked data.
This fix first creates an empty (blockless) page data structure containing all regions and sections for the page's layout and then adds all the blocks from the database for the page to this structure.
Fixes #212
Baking pages worked by creating the page data structure from the blocks in the database for that page.
This meant that any optional sections with no blocks currently configured would not be present in the baked data.
This fix first creates an empty (blockless) page data structure containing all regions and sections for the page's layout and then adds all the blocks from the database for the page to this structure.