Hugo Pretty Html

23 Jan 2023

By default, hugo does not output nice-looking HTML. Even manually, it’s impossible to make the output look nice if you are using Go templates. My simple yet effective solution is to run the following script after hugo generates the site:

find public/ -name *.html | xargs prettier -w