Hello third_try,
Please provide a link to the source code repository for your project.
See https://discourse.gohugo.io/t/requesting-help/9132.
I don’t think this is exactly what you’re asking for, but it might lead you in the right direction.
https://github.com/jmooring/hugo-forum-topic-25710.