File format really doesn’t matter, as with HTML Hugo doesn’t need to process it. Is there a setting to get it to process the file? The Jekyll method is any text file with frontmatter gets processed (CSS, JS, JSON can all be done).
No. You can set the url in frontmatter with an extension – so you can output anything, but it is a little exotic – Hugo is a HTML generator at its core.
@wjdp You can create a layout and use jsonify to get the desires output, then it’s just a matter of changing the extension in a bash script. Not technically 100% Hugo, but it will get you 98% of the way there.
Not sure if this is what you’re looking for, but skilstak’s tutorial gave me some ideas on setting Hugo up to be more “data-centric” versus the standard “content-centric”
@bep I failed to look more closely at the above commit. So is that you can use your above method allows Hugo to write directly to a .json file? So I can create an HTML template and write to .json as long as I change url: in the front matter?