I’m trying to make a site which contains video tutorials under an authentication / permission based system. It uses Vimeo + Firebase for auth and video tutorial data. The rest is static in Hugo.
In essence its a very static site that has a single collection (video tutorials) with lots of entries coming from a JSON file.
The problem is I want to create single entries for each tutorial so that I can make a Hugo driven static file per tutorial and also get all of the template language goodness to create archives of tags, authors and many other key:value pairs.
As far as I can see the JSON URL ingestion and indexing is only available on a per page basis so there is no way to generate numerous file entries from JSON.
I know this could be done with a script if it was a one off action but as I add new entries, chopping up and rendering the JSON > MD seems tedious and I would also have to deal with all of the old files.
Does anybody have any workarounds or suggestions of how to architect this solution with Hugo?
So my use-case is different for yours, because I am creating single entries for my videos because I wanted to be able to take advantage of having them as a part of the site. I also needed to display those videos in aggregate organized around “playlists,” which, in my site, are a separate section, each playlist with its own page. So I created a page level custom output type of JSON for the videos and output essential information, then on each playlist page I use a query parameter to pull in that data and pass it to the Youtube API to create a video player. It’s a work in progress, but here’s an example:
As you say, your use case is different, in fact almost the inverse of mine.
Having now read what I think is every article about this online (not many out there) I cannot see that there is a way at present to render single items out of JSON (or other ) data at present but boy would it make a superb feature!