please keep in mind that Hugo is not designed to generate websites that can be browsed by filesystem - there are a lot of edge cases to consider.
Nevertheless If you are heading for that have a look at Crafting and configuring a "serverless" site
If not, checkout the link @Arif provided