With resources.GetRemote we do not blindly trust the content.
I would not use the term work-around, as that sounds a little like a hack. I do agree that Hugo should have these configured by default, but we’re not going to ever have all the media types etc. in the world configured, which is why this can be added/modified via end user configuration.
I agree, but in this case a user would have no idea what to add. I had to debug to figure out which extension it was picking up, and from where. I think Go’s idea of loading MIME type databases from the local system is a bit sketchy.