The site is built on Foundation, which by default applies styles (based on SCSS settings) to inputs based on their attribute type ie
input[type="text"], not a class. I think from memory Bootstrap does the same, but it’s been ages since I’ve used that framework.
As a fallback we could apply these styles via a class, but seeing as the two major frontend frameworks attach styles via the type attribute, it would be nice if these tags could not be stripped out.
Further testing results…
I’ve tested my source on the online minifier demo for the minifier Hugo uses and when passing the flag
input[type="text"] attribute is not stripped out. Removing the flag
--html-keep-default-attrval does indeed strip the
It looks like
--html-keep-default-attrval is the correct flag to enable.
Link below if you want to test