Hugo deploy, some HTML tags not closed, doesn't match local server

After lots of investigation, I have been able to replicate this by adding the --minify flag to the build command (like so):

export NODE_VERSION=10 NODE_ENV=production HUGO_VERSION=0.61.0 HUGO_ENV=production; build hugo -v --minify

So I’m assuming this is a hugo bug and have reported it there. I hope this is helpful for someone.

1 Like