I use hugo to output json file. However with around 15,000+ pages the file becomes very large.
Is there an option in hugo to use pagination like method and similar to splitting pages split the single json file in multiple files at every 100 results?
This is not an answer to the question, but a thought.
Is it possible to produce one json per directory (for example)? And to produce a json at the root that lists the jsons?
Like a static API.
You can paginate any list node (home page, sections, taxonomies, terms) for any output format, so if you provide a
list.json template for sections that uses either Paginate or Paginator, that will work.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.