HUGO

Detailed view of table generated by JSON

Hallo folks,

I am reading data from a JSON file to create a table. Now I want to create a detailed view of the table rows on separate pages. So if you click on the rows a new page should open up.

Can somebody please give a tip on how to create the sub-pages for the table?

Thanks

Mebus

At the moment you cannot directly create Pages from data. See : https://github.com/gohugoio/hugo/issues/6310

But as a workaround what you can do is generate all the “pages” information on one page, hide this by default and reveal the requested information when you click on the link.

Ah, thanks for the reply. I build something in Rust to generate *.md files for Hugo.