I have built my first site with Hugo and have been getting along pretty well so far. Unfortunately I have now encountered a problem which I can’t solve on my own: I need .aspx as the output format since I need to host the site on Sharepoint Online. I have read through the documentation and the forums here and included the required parameters in my config.toml. Unfortunately I can’t provide you with the full source as there is quite a lot of sensitive information in there but I will provide you with the config.toml below (only the links have been removed for the reason above).
It should check both type and suffix in the lookup path, so “index.html” and “index.html.aspx” should both work. So I’m not sure what’s happening here.
However, for the pages that didn’t work. I have also tried renaming the list.html and single.html in the _defaults folder in my theme to .aspx since I understood that Hugo will look there first but that didn’t help. When I do that, it stops generating these pages altogether…
Technically if all you need to do is replace the .html extension of your html output files by aspx, all you have to do, matching this example in the doc, is add the following to your config toml: