Figure shortcode and svg bug? [SOLVED]


While using the shortcode for figure to link to an externally hosted svg (Azure Blob), Hugo won’t render the image. Anyone have an idea why?

(the link is correct and the html-code is rendered correctly, and it works if I swap it to a jpg. I’m running local server)

OK, after som heavy googling I found out that the blob set SVG’s as content type ‘application/octet’. I managed to change this to image/svg+xml in Azure Portal and it now works. I’ll write again once I find out how to standardize this.

Updates, this can be done with Powershell:

I also noticed that the correct mime type was used directly while using Azure Storage Explorer. Hope this helps anyone in the future!