I come from a backend development background and I’m not how to implement this content structure in hugo.
I have projects and logs. Every project has many logs / each log has one project. On my project single page, I want to be able to retrieve all logs for that specific project. Does anyone have any suggestions on how to accomplish this?
Logs have their own pages and index. When a new log is created, I would like to associate it with a specific project so I can display all associated logs for a specific project.
I thought about adding an id field to the front matter of a project and then in the front matter of each log. I’d also have a field project-id. I wasn’t sure if there was a better solution than to query that way.
If you need all the logs in one section, then adding the IDs as you suggested above is probably the right approach. If you do this, be sure to look into Related Content.