How can I generate multiple pages from a JSON file with Assemble How can I generate multiple pages from a JSON file with Assemble json json

How can I generate multiple pages from a JSON file with Assemble


You can add pages to a pages collection on the assemble.options. See this part of the Gruntfile for an example.

You can create each of the partials you mentioned above that take in the data needed for text, authors, image, blockquote, etc... then use the partial helper to dynamically call partials from the page metadata...

{{#each page.sections}}  {{partial this.type this.data}}{{/each}}

Try putting together a repo with this information and link it here and I can take a look to see if it's working as expected.

Hope this helps.