khusika / FeelIt

A clean, elegant but advanced blog theme for Hugo
https://feelit.khusika.dev
MIT License
164 stars 60 forks source link

[Upstream Issues] Hugo minifier regression #40

Closed khusika closed 3 years ago

khusika commented 3 years ago

Describe the issues

Latest uptream version of Hugo on commit c19f65f, forcing us to enable keepWhitespace for html minifier. Those commits will make the html size bigger after being minified(cause of the whitespace).

Describe the workaround

We should keep the keepWhitespace to false as we don't use any other text around <span> tag on html. This can be done from config.toml

[minify.tdewolff.html]
  keepWhitespace = false

Related topic

Provides related topic

Build Environment