Hugo hasn’t a very powerful support for custom content types, but you should get what you want by taking inspiration from this:
Hugo hasn’t a very powerful support for custom content types, but you should get what you want by taking inspiration from this: