and so on. So, I want to generate a JSON file only for all the posts in section 3. How can I do that?
I tried adding section3 = ["HTML", "JSON"] in [outputs] in config.toml, but that didn’t work, or maybe I did something wrong. If this is correct, where exactly should I place the layout for this JSON file? At present, I have it at layouts/section3/single.json.
as a shell script should do the trick. I have a shell script that runs before hugo and one for after hugo for these things. There is a lot hugo can’t and shouldn’t do that I delegate to these release scripts.
Edit: Ehm, I am on Ubuntu. There might be similar solutions for other OSses, but I won’t be dabbling there
Yeah, this seems to work fine! An individual JSON per song would have been better just to keep the JSON file size in control in case the number of songs gets too long. But, I suppose this can work for now.
Thanks a lot again.
EDIT: Seems like it works fine to generate one for individual song too. Great!