I am contributing to a website called Millmint. The website has a dark/light theme toggle on in the header which allows you to switch the theme. The problem is that on the initial page load, it always flashes a white screen. Of course this is a fairly well-known problem with this kind of system with a simple enough fix: just put a script at the top of the head that sets the appropriate attributes.
The code is available here, with the relevant bit highlighted:
Is there any way to make Hugo leave this specific script tag alone? It doesn’t add the attribute on the local dev server as it does in the production build, and that’s the desired behaviour.