I have a site with a few different “foo.json”, “bar.json” templates under the /layouts folder which use jsonify to produce proper JSON files, which can then be read from JS for indexing purposes. These were published under the /public directory when running hugo server with v0.122.1, but that no longer happens with hugo v0.152.2 and I have no idea how to get it back working.
I followed this page for migrating the other layouts, so this is the last remaining bit I can’t figure out. Any help much appreciated (note I’m a Hugo newbie)
Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.