Hi, new at Hugo. When I build the /public dir with just “hugo -v” the html comments are still in the resulting index.html files. Aren’t the comments supposed to be stripped out? I don’t want any commets in production html. What am I missing? Thanks
what’s your Hugo version?
Also, are you using HTML comments or Template comments?
Hugo Static Site Generator v0.55.6-A5D4C82D2/extended linux/amd64 BuildDate: 2019-05-18T08:08:34Z
the comment are html
wrote a little bash script to clean them out ftm
I just tested this in 0.55.6 and my comments were stripped out.
Possibly your comments are formatted specially? Share an example one with us that isn’t getting stripped.
1 Like
If you build with the following, HTML comments should be stripped out:
hugo --minify
Let us know if that works!
1 Like
that was it, thanks & sorry, overlooked --minify in the docs