Apart from a standard sitemap I want hugo to generate a separate JSON-file in the following format:
[
{
"title": "First page",
"content": "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."
},
{
"title": "Second page",
"content": "At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
}
]
containing all pages with title and content from my site.
I have no problem creating such a template and looping throug .Data.Pages
with range
– but where would I place and configure it?