Goal: replicate the homepage (index) content on other pages using JSON templates, while keeping it synced with homepage updates.
Background: Previously, in Liquid, the page template used section includes (e.g., {% section ‘page-header-36’ %}, {% section ‘page-content-36’ %}, {% section ‘page-banner-36’ %}) followed by {{ content_for_index }} to render the homepage sections.
Current state: The author can reproduce the index layout by copying the index code into a page template, but this creates a static duplicate. When the index (homepage) changes, the copied page does not update automatically.
Clarification: “Index content” refers to the homepage’s sections/blocks. The author is seeking a JSON (Online Store 2.0 schema-driven) equivalent to Liquid’s {{ content_for_index }} that references the same source of content rather than duplicating it.
Outcome: No solution or workaround has been provided yet. The request remains open, with the desired end result being an automatically synced rendering of the homepage content on other pages without manual code duplication.
Anyone who knows how to replicate the index content in other pages (page templates) with JSON?
Previously I uses Liquid I used {{ content_for_index }}, Eg. on how the page tamplate looked for a Liquid code, I want to replicate same type of structure in JSON:
I have managed to replicate the index content by copyin the code and pasting it in the page tamplate, however this does not result in updates on the page as the index is updated.
Ther page is to be updated with the index content as the index is updated.
This is the end result I want.